8 lines
65 KiB
JavaScript
8 lines
65 KiB
JavaScript
|
/*!
|
||
|
* videojs-record
|
||
|
* @version 4.7.0
|
||
|
* @see https://github.com/collab-project/videojs-record
|
||
|
* @copyright 2014-2024 Collab
|
||
|
* @license MIT
|
||
|
*/
|
||
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("recordrtc"),require("video.js")):"function"==typeof define&&define.amd?define("VideojsRecord",["recordrtc","video.js"],t):"object"==typeof exports?exports.VideojsRecord=t(require("recordrtc"),require("video.js")):e.VideojsRecord=t(e.RecordRTC,e.videojs)}(self,((e,t)=>(()=>{var r={96:function(e,t,r){var i;!function(t){"use strict";function o(e,t){t=t||2;var r,i=Number(e)<0,o=e.toString();return i&&(o=o.slice(1)),r=t-o.length+1,(i?"-":"")+(o=new Array(r).join("0").concat(o))}void 0===(i=function(){return o}.call(t,r,t,e))||(e.exports=i)}(this)},607:(e,t,r)=>{"use strict";var i=r(411);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(64)),a=i(r(24)),n=i(r(284)),s=i(r(312)),u=i(r(532)),l=i(r(836)),c=i(r(520));function d(e,t,r){return t=(0,u.default)(t),(0,n.default)(e,h()?Reflect.construct(t,r||[],(0,u.default)(e).constructor):t.apply(e,r))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=c.default.getComponent("Component"),f=function(e){function t(){return(0,o.default)(this,t),d(this,t,arguments)}return(0,l.default)(t,e),(0,a.default)(t,[{key:"createEl",value:function(){var e=c.default.dom.createEl("img"),r=(0,s.default)((0,u.default)(t.prototype),"createEl",this).call(this,"div",{className:"vjs-animation-display",dir:"ltr"});return r.appendChild(e),r}}]),t}(p);p.registerComponent("AnimationDisplay",f);t.default=f;e.exports=t.default},336:(e,t,r)=>{"use strict";var i=r(411);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(64)),a=i(r(24)),n=i(r(284)),s=i(r(312)),u=i(r(532)),l=i(r(836)),c=i(r(520)),d=i(r(456));function h(e,t,r){return t=(0,u.default)(t),(0,n.default)(e,p()?Reflect.construct(t,r||[],(0,u.default)(e).constructor):t.apply(e,r))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=c.default.getComponent("Button"),v=c.default.getComponent("Component"),y=function(e){function t(){return(0,o.default)(this,t),h(this,t,arguments)}return(0,l.default)(t,e),(0,a.default)(t,[{key:"buildCSSClass",value:function(){return"vjs-camera-button vjs-control vjs-button vjs-icon-photo-camera"}},{key:"enable",value:function(){(0,s.default)((0,u.default)(t.prototype),"enable",this).call(this),this.on(this.player_,d.default.START_RECORD,this.onStart),this.on(this.player_,d.default.STOP_RECORD,this.onStop)}},{key:"disable",value:function(){(0,s.default)((0,u.default)(t.prototype),"disable",this).call(this),this.off(this.player_,d.default.START_RECORD,this.onStart),this.off(this.player_,d.default.STOP_RECORD,this.onStop)}},{key:"show",value:function(){this.layoutExclude&&!0===this.layoutExclude||(0,s.default)((0,u.default)(t.prototype),"show",this).call(this)}},{key:"handleClick",value:function(e){var t=this.player_.record();t.isProcessing()?(t.retrySnapshot(),this.onStop(),this.player_.trigger(d.default.RETRY)):t.start()}},{key:"onStart",value:function(e){this.removeClass("vjs-icon-photo-camera"),this.addClass("vjs-icon-replay"),this.controlText("Retry")}},{key:"onStop",value:function(e){this.removeClass("vjs-icon-replay"),this.addClass("vjs-icon-photo-camera"),this.controlText("Image")}}]),t}(f);y.prototype.controlText_="Image",v.registerComponent("CameraButton",y);t.default=y;e.exports=t.default},124:(e,t,r)=>{"use strict";var i=r(411);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(64)),a=i(r(24)),n=i(r(284)),s=i(r(312)),u=i(r(532)),l=i(r(836)),c=i(r(520));function d(e,t,r){return t=(0,u.default)(t),(0,n.default)(e,h()?Reflect.construct(t,r||[],(0,u.default)(e).constructor):t.apply(e,r))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=c.default.getComponent("Button"),f=c.default.getComponent("Component"),v=function(e){function t(){return(0,o.default)(this,t),d(this,t,
|