Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

seek does not work on rtmp jwplayer v7


It shows a black screen with refresh circling. I know the video is there and autostart works fine. The seeked event works fine if manually scroll to any position. any idea why seek function does not work?

var playerInstance = jwplayer("_video");
playerInstance.setup({
file: "rtmp://szq3gh4wlzgxg.cloudfront.net/cfx/st/kb.20131113.mp4",
width: "100%",
aspectratio: "4:3"
});

playerInstance.on('play', function() {
console.log("play");
});

playerInstance.on('seek', function() {
console.log("seeked");
});

playerInstance.on('ready', function() {
playerInstance.seek(5);
});

2 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

In order to do what you are looking to do, you’d want to wrap .seek() inside of a .on(“play”) event, not .on(“ready”).

Please let me know if you need any more help or have any other questions.

Thank you!

Weerasak

User  
0 rated :

0854678012

This question has received the maximum number of answers.