I use Youtube ApiYouTube API in my app, but my. My problem is it's, the video does not auto play, mustand the user has to press the play button to start playing.
My code is:
setContentView(R.layout.playerview_demo); ((YouTubePlayerView)findViewById(R.id.youtube_view)).initialize(DEV_KEY, this); youtube_viewyoutube_view layout:
<com.google.android.youtube.player.YouTubePlayerView android:id="@id/youtube_view" android:layout_width="fill_parent" android:layout_height="wrap_content" /> How do I make the video start automatically?