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

Autoplay videos when visible on android?


How to autuplay the video when it's visible to the user?
Just like Facebook and Instagram

4 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi there,

You should be able to set autoplay: 'viewable' in your player setup to have it automatically begin playback when the player is at least 50% viewable on the page.

https://developer.jwplayer.com/jw-player/docs/developer-guide/customization/configuration-reference/#behavior

Thank you.

a...

User  
0 rated :

I'm sorry but I asked for android not javascript

Alex

JW Player Support Agent  
0 rated :

My apologies – I saw that you said “Android” but assumed you mean when the player is embedded on a page and viewed in Chrome for Android. I’ll forward this case to our Android SDK Support Engineers who should be able to assist you.

Thank you.

George

JW Player Support Agent  
0 rated :

Hi,

It depends on which class you’re using to scroll within the app, ListView, RecyclerView etc. There’s no built in functionality for this so any answer on stackoverflow that describes getting the scroll position of your container would suffice.

This question has received the maximum number of answers.