aboutsummaryrefslogtreecommitdiffstats
path: root/stella.js
diff options
context:
space:
mode:
authoranekos2010-07-14 11:52:41 +0000
committeranekos2010-07-14 11:52:41 +0000
commit19f54a08c918e446a90822c4db6ff8a41d121ff3 (patch)
tree967737b0ba37c468ac0bc0490d37d59fa64ffd9c /stella.js
parent45b7387d1b6e9d09285120ca44ed28e551d62456 (diff)
downloadvimperator-plugins-19f54a08c918e446a90822c4db6ff8a41d121ff3.tar.bz2
ニコニコ動画のバグにテケトーに対応
ext_getStatus() が、再生中であっても "playing" を返すバグ git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37927 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'stella.js')
-rw-r--r--stella.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/stella.js b/stella.js
index 5dfe2b3..9a30c61 100644
--- a/stella.js
+++ b/stella.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
<name lang="ja">すてら</name>
<description>For Niconico/YouTube/Vimeo, Add control commands and information display(on status line).</description>
<description lang="ja">ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。</description>
- <version>0.31.1</version>
+ <version>0.32.0</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
@@ -1279,7 +1279,7 @@ Thanks:
case 'end':
return Player.ST_ENDED;
case 'playing':
- return Player.ST_PLAYING;
+ return this.storage.bug_paused ? Player.ST_PAUSED : Player.ST_PLAYING;
case 'paused':
return Player.ST_PAUSED;
case 'buffering':
@@ -1336,9 +1336,15 @@ Thanks:
return value;
},
- pause: function () this.player.ext_play(false),
+ pause: function () {
+ this.storage.bug_paused = true;
+ this.player.ext_play(false);
+ },
- play: function () this.player.ext_play(true),
+ play: function () {
+ this.storage.bug_paused = false;
+ this.player.ext_play(true)
+ },
playOrPause: function () {
if (this.is(Player.ST_PLAYING)) {