From 19f54a08c918e446a90822c4db6ff8a41d121ff3 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 14 Jul 2010 11:52:41 +0000 Subject: ニコニコ動画のバグにテケトーに対応 ext_getStatus() が、再生中であっても "playing" を返すバグ git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37927 d0d07461-0603-4401-acd4-de1884942a52 --- stella.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'stella.js') 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 = すてら For Niconico/YouTube/Vimeo, Add control commands and information display(on status line). ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。 - 0.31.1 + 0.32.0 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -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)) { -- cgit v1.2.3