Open text4lilac opened 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" />
Try using cueVideo in player's OnReady callback
https://github.com/PierfrancescoSoffritti/android-youtube-player/blob/master/core-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/sampleapp/examples/recyclerViewExample/RecyclerViewAdapter.java
<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" />