From 7b7f86ddf21cac6cb8f7e68a0b0f5c13391384ea Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 23 Nov 2008 00:37:11 +0000 Subject: nicoseek -10 の様な指定を可能にした。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24677 d0d07461-0603-4401-acd4-de1884942a52 --- nicontroller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nicontroller.js') 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) { -- cgit v1.2.3