PierfrancescoSoffritti / android-youtube-player

YouTube Player library for Android and Chromecast, stable and customizable.
https://pierfrancescosoffritti.github.io/android-youtube-player/
MIT License
3.44k stars 765 forks source link

autoPlay = false is not working #723

Open text4lilac opened 3 years ago

text4lilac commented 3 years ago

<com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView android:layout_gravity="center" android:id="@+id/andExoPlayerView" app:autoPlay="false" app:enableAutomaticInitialization="true" app:enableLiveVideoUi="false" app:handleNetworkEvents="false" app:showFullScreenButton="false" app:showSeekBar="true" app:showVideoCurrentTime="true" app:showVideoDuration="true" app:showYouTubeButton="false" app:useWebUi="false" android:layout_width="match_parent" android:layout_height="@dimen/_180sdp" />

muankit commented 3 years ago

Try using cueVideo in player's OnReady callback

UzBestDeveloper commented 2 years ago

https://github.com/PierfrancescoSoffritti/android-youtube-player/blob/master/core-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/sampleapp/examples/recyclerViewExample/RecyclerViewAdapter.java