X-Git-Url: http://git.osdn.jp/view?p=pettanr%2FclientJs.git;a=blobdiff_plain;f=0.6.x%2Fjs%2F07_audio%2F05_XWMPAudio.js;fp=0.6.x%2Fjs%2F07_audio%2F05_XWMPAudio.js;h=cb750fb0cd077a27ab693fb3f850e57b352b84d9;hp=5ee0c80495d23ae369dc0da4b3473319a43ce856;hb=66ccef8a1fdd3994dd3c75dcfede668ea55f1d2e;hpb=4e4ab3be10850546063d4a4b93250ed142bb8cd2 diff --git a/0.6.x/js/07_audio/05_XWMPAudio.js b/0.6.x/js/07_audio/05_XWMPAudio.js index 5ee0c80..cb750fb 100644 --- a/0.6.x/js/07_audio/05_XWMPAudio.js +++ b/0.6.x/js/07_audio/05_XWMPAudio.js @@ -22,8 +22,8 @@ if( X_Plugin_WMP_VERSION ){ // IETester で 6.x は不可 _seekDirection : 0, _timerID : 0, - 'Constructor' : function( disatcher, source, option ){ - this.disatcher = disatcher || this; + 'Constructor' : function( dispatcher, source, option ){ + this.dispatcher = dispatcher || this; this._source = source; if( 7 <= X_Plugin_WMP_VERSION ){ @@ -71,7 +71,7 @@ if( X_Plugin_WMP_VERSION ){ // IETester で 6.x は不可 break; case X_EVENT_KILL_INSTANCE : - this.playing && this.disatcher[ 'dispatch' ]( X_EVENT_MEDIA_ENDED ); + this.playing && this.dispatcher[ 'dispatch' ]( X_EVENT_MEDIA_ENDED ); this.playing && this.actualPause(); this.wmp.stop(); this.xnodeObject[ 'kill' ](); @@ -120,7 +120,7 @@ if( X_Plugin_WMP_VERSION ){ // IETester で 6.x は不可 progress = this.wmp[ 'BufferingProgress' ]; }; if( progress < 100 ){ - this.disatcher[ 'dispatch' ]( { type : X_EVENT_PROGRESS, 'percent' : progress } ); + this.dispatcher[ 'dispatch' ]( { type : X_EVENT_PROGRESS, 'percent' : progress } ); } else { this._readyState = 2; if( 7 <= X_Plugin_WMP_VERSION ){ @@ -128,7 +128,7 @@ if( X_Plugin_WMP_VERSION ){ // IETester で 6.x は不可 } else { this.duration = this.wmp[ 'Duration' ] * 1000 | 0; }; - this.disatcher[ 'dispatch' ]( X_EVENT_READY ); + this.dispatcher[ 'dispatch' ]( X_EVENT_READY ); }; } else // ended の判定 @@ -138,33 +138,33 @@ if( X_Plugin_WMP_VERSION ){ // IETester で 6.x は不可 // waiting if( this._seekDirection ){ if( this._seekDirection === 1 ? ( time < this._beginTime ) : ( this._lastCurrentTime <= time ) ){ - this.disatcher[ 'dispatch' ]( X_EVENT_MEDIA_SEEKING ); + this.dispatcher[ 'dispatch' ]( X_EVENT_MEDIA_SEEKING ); return; }; delete this._seekDirection; }; if( time === this._lastCurrentTime ){ - this.disatcher[ 'dispatch' ]( X_EVENT_MEDIA_WAITING ); + this.dispatcher[ 'dispatch' ]( X_EVENT_MEDIA_WAITING ); return; }; this._lastCurrentTime = time; // ended ではない if( time - X_Audio_getEndTime( this ) < -50 ){ - this.disatcher[ 'dispatch' ]( X_EVENT_MEDIA_PLAYING ); + this.dispatcher[ 'dispatch' ]( X_EVENT_MEDIA_PLAYING ); return; }; // ended if( this.autoLoop ){ - if( !( this.disatcher[ 'dispatch' ]( X_EVENT_MEDIA_BEFORE_LOOP ) & X_CALLBACK_PREVENT_DEFAULT ) ){ + if( !( this.dispatcher[ 'dispatch' ]( X_EVENT_MEDIA_BEFORE_LOOP ) & X_CALLBACK_PREVENT_DEFAULT ) ){ this.looped = true; - this.disatcher[ 'dispatch' ]( X_EVENT_MEDIA_LOOPED ); + this.dispatcher[ 'dispatch' ]( X_EVENT_MEDIA_LOOPED ); this.actualPlay(); }; } else { this.actualPause(); - this.disatcher[ 'dispatch' ]( X_EVENT_MEDIA_ENDED ); + this.dispatcher[ 'dispatch' ]( X_EVENT_MEDIA_ENDED ); delete this._timerID; return X_CALLBACK_UN_LISTEN; };