diff options
author | anekos | 2010-06-13 15:29:24 +0000 |
---|---|---|
committer | anekos | 2010-06-13 15:29:24 +0000 |
commit | 7ca56a80a25c2866ab189d4254e6f1948af45948 (patch) | |
tree | c7dce8308dcfb516d149892c05a0b3c19b362302 /stella.js | |
parent | 4f6b617cb323a4b6818d4c815a3d538f04f754b4 (diff) | |
download | vimperator-plugins-7ca56a80a25c2866ab189d4254e6f1948af45948.tar.bz2 |
コメントをローカルに表示するように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37836 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'stella.js')
-rw-r--r-- | stella.js | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1427,8 +1427,7 @@ Thanks: __proto__: info.flvInfo, ticket: info.ticket, postkey: info.postkey, - // 0 秒コメントはうざいらしいので勝手に自重する - vpos: Math.max(100, parseInt(vpos || (self.player.ext_getPlayheadTime() * 100), 10)), + vpos: vpos * 100, body: message }; U.log(args); @@ -1437,12 +1436,20 @@ Thanks: U.log(xhr.responseText); } + function sendDummyComment (message, command, position) { + self.player.ext_sendLocalMessage(message, command, vpos); + } + + // 0 秒コメントはうざいらしいので勝手に自重する + vpos = Math.max(1, parseInt(vpos || self.currentTime, 10)); + U.log('sendcommnet'); getThumbInfo(); getFLV(); getPostkey(); getComments(); sendChat(); + sendDummyComment(message, command, vpos); } }; @@ -1491,7 +1498,7 @@ Thanks: set muted (value) (this.volume = value ? 0 : 100), get player () - this.__initializePlayer(U.xpathGet('//embed[contains(@id,"vimeo_clip_")]').wrappedJSObject), + this.__initializePlayer(content.document.querySelector('.player > object').wrappedJSObject), get ready () !!this.player, |