admin管理员组文章数量:1344187
I am using jwplayer to play embedded video, the javascript api tells me
jwplayer("mediaplayer").getPosition()
will get the current position, but my result is undefined
Can anyone help me get the correct resilts
I am using jwplayer to play embedded video, the javascript api tells me
jwplayer("mediaplayer").getPosition()
will get the current position, but my result is undefined
Can anyone help me get the correct resilts
Share Improve this question edited May 15, 2012 at 9:27 Manse 38.1k11 gold badges86 silver badges111 bronze badges asked May 15, 2012 at 9:14 wumengjunwumengjun 531 gold badge1 silver badge3 bronze badges 1- Can you include your HTML and JavaScript here - it works fine when using the example HTML and JavaScrip – Manse Commented May 15, 2012 at 9:28
2 Answers
Reset to default 6Works fine for me just how the documentation specifies :
<div id="container"></div>
jwplayer("container").setup({
file: "http://content.bitsontherun./videos/nPripu9l-60830.mp4",
flashplayer: "http://player.longtailvideo./player.swf",
image: "http://content.bitsontherun./thumbs/nPripu9l-480.jpg",
height: 270,
width: 480
});
var state = jwplayer("container").getState();
var elapsed = jwplayer("container").getPosition();
How does your HTML and JavaScript look? Without seeing these, I can only assume the following.
According to the API documentation on the website this can be achieved without specifying a container, like so...
jwplayer().getPosition()
本文标签: javascriptuse jwplayer to get current play timeStack Overflow
版权声明:本文标题:javascript - use jwplayer to get current play time - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743697103a2523685.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论