WeiWeiXinNet/admin/Recorder/recorder.js
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var Recorder = {
version: 1.13,
swfObject: null,
_callbacks: {},
_events: {},
_initialized: false,
_flashBlockCatched: false,
options: {},
initialize: function(options){
this.options = options || {};
if(window.location.protocol === "file:"){
throw new Error("Due to Adobe Flash restrictions it is not possible to use the Recorder through the file:// protocol. Please use an http server.");
}
if(!this.options.flashContainer){
this._setupFlashContainer();
}
this.bind('initialized', function(){
Recorder._initialized = true;
if(Recorder._flashBlockCatched){
Recorder._defaultOnHideFlash();
}
if(options.initialized){
options.initialized();
}
});
this.bind('showFlash', this.options.onFlashSecurity || this._defaultOnShowFlash);
this._loadFlash();
},
clear: function(){
Recorder._events = {};
},
record: function(options){
options = options || {};
this.clearBindings("recordingStart");
this.clearBindings("recordingProgress");
this.clearBindings("recordingCancel");
this.bind('recordingStart', this._defaultOnHideFlash);
this.bind('recordingCancel', this._defaultOnHideFlash);
// reload flash to allow mic permission dialog to show again
this.bind('recordingCancel', this._loadFlash);
this.bind('recordingStart', options['start']);
this.bind('recordingProgress', options['progress']);
this.bind('recordingCancel', options['cancel']);
this.flashInterface().record();
},
stop: function(){
return this.flashInterface()._stop();
},
play: function(options){
后面还有 155 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。