0

I loaded my YouTube video using YouTubePlayerView in my activity. Once loaded i want to press Play button to play the video.

I want to auto play then YouTube video, is any possibilities to auto play the video in android activity?

Prabhakarank
  • 181
  • 1
  • 1
  • 6
  • 1
    Possible duplicate of [Youtube Api android autostart](https://stackoverflow.com/questions/15354621/youtube-api-android-autostart) – Hannes Landeholm Jul 14 '17 at 12:17

1 Answers1

2
loadVideo(youtube_id); 

this will buffer the video and autoplay it, also make sure you won't have any view to overlay the YoutubeMediaPlayer because it will stop

Ionut J. Bejan
  • 734
  • 11
  • 28