Android-youtube-player: Disable autoplay

Created on 1 Nov 2018  路  1Comment  路  Source: PierfrancescoSoffritti/android-youtube-player

Hello,
Thanks for this library

I want to know if i can disable auto start of video when the view is created
I tried to add youtubePlayer.pause() in the onReady Callback and it seems to pause it but there's an infinit loader on start button on the player

Is there another method to do so?
thanks

question

Most helpful comment

Hi, you should use youtubePlayer.cueVideo() instead of loadVideo().

>All comments

Hi, you should use youtubePlayer.cueVideo() instead of loadVideo().

Was this page helpful?
0 / 5 - 0 ratings