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

play() call not being run in jwplayer().onLoad()


On my page my video is being loaded correctly, and the script below is being run, but the video does not start playing. Any obvious reason why not?

if (1) jwplayer().onReady(function() {jwplayer().play();});

3 Community Answers

Ethan Feldman

JW Player Support Agent  
1 rated :

This is a bug that will be fixed in 6.12.

Use this work around:

jwplayer().onReady(function() {
window.setTimeout(function(){jwplayer().play();},100);
});

info

User  
0 rated :

Thanks, sorry about the double post.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

This question has received the maximum number of answers.