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

Autostart viewable is not working


I'm setting autostart to "viewable" on my site, but the player starts even if it's less than 50% visible.
Here is my code:
<script type='text/javascript'>
jwplayer("myElement").setup({
"file": "http://mirrors.standaloneinstaller.com/video-sample/small.mp4",
"autostart": "viewable"
});
</script>

Am I doing something wrong?

Also the player says: "No playable sources found" when in iframe in firefox (also on your sites). In chrome and in firefox without iframe works fine.

5 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

Can you please supply a link to a reproduction page so we can take a look at your issue?

Thank you.

Aleksandra Mogielska

User  
0 rated :

Here is my page:

https://ec.adkontekst.pl/test/test.html

Alex

JW Player Support Agent  
0 rated :

Hi Aleksandra,

It looks like autostart: 'viewable' will not work properly if you do not have the HTML5 DOCTYPE on your page. Please add the following line to the top of your page before the opening <html> tag:

<!DOCTYPE html>

Thank you.

a...

User  
0 rated :

That works, thank you!

Alex

JW Player Support Agent  
0 rated :

Not a problem!

This question has received the maximum number of answers.