diff options
author | anekos | 2008-11-23 00:37:11 +0000 |
---|---|---|
committer | anekos | 2008-11-23 00:37:11 +0000 |
commit | 7b7f86ddf21cac6cb8f7e68a0b0f5c13391384ea (patch) | |
tree | faf25421233df93f68d379d41da9f41db173cdcc /nicontroller.js | |
parent | 00b1f584a13c4cae8b0b84b6e3ffc67f7b9d037b (diff) | |
download | vimperator-plugins-7b7f86ddf21cac6cb8f7e68a0b0f5c13391384ea.tar.bz2 |
nicoseek -10 の様な指定を可能にした。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24677 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'nicontroller.js')
-rw-r--r-- | nicontroller.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nicontroller.js b/nicontroller.js index 7db69b4..77a4305 100644 --- a/nicontroller.js +++ b/nicontroller.js @@ -360,7 +360,10 @@ NicoPlayerController.prototype = { else position = this.constants.SEEKTO_DEFAULT;
var p = this._flvplayer();
- p.ext_setPlayheadTime(position);
+ if (position < 0)
+ p.ext_setPlayheadTime(parseInt(p.ext_getTotalTime()) + parseInt(position));
+ else
+ p.ext_setPlayheadTime(position);
},
seekBy: function(delta) {
|