Changeset 37927

Show
Ignore:
Timestamp:
07/14/10 20:52:41 (3 years ago)
Author:
anekos
Message:

ニコニコ動画のバグにテケトーに対応

ext_getStatus() が、再生中であっても "playing" を返すバグ

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/stella.js

    r37837 r37927  
    4040  <description>For Niconico/YouTube/Vimeo, Add control commands and information display(on status line).</description> 
    4141  <description lang="ja">ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。</description> 
    42   <version>0.31.1</version> 
     42  <version>0.32.0</version> 
    4343  <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> 
    4444  <license>new BSD License (Please read the source code comments of this plugin)</license> 
     
    12801280          return Player.ST_ENDED; 
    12811281        case 'playing': 
    1282           return Player.ST_PLAYING; 
     1282          return this.storage.bug_paused ? Player.ST_PAUSED : Player.ST_PLAYING; 
    12831283        case 'paused': 
    12841284          return Player.ST_PAUSED; 
     
    13371337    }, 
    13381338 
    1339     pause: function () this.player.ext_play(false), 
    1340  
    1341     play: function () this.player.ext_play(true), 
     1339    pause: function () { 
     1340      this.storage.bug_paused = true; 
     1341      this.player.ext_play(false); 
     1342    }, 
     1343 
     1344    play: function () { 
     1345      this.storage.bug_paused = false; 
     1346      this.player.ext_play(true) 
     1347    }, 
    13421348 
    13431349    playOrPause: function () {