Open youtube video fullscreen

Asked

Viewed 87 times

1

I’m using the code below to open a youtube video, but I would like it to open already in full screen.

String id = "Zh-2d_AqiQQ";
Intent it_video_intro = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:" + id));
Intent webIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=" + id));
try {
  startActivity(it_video_intro);
} catch (ActivityNotFoundException ex) {
  startActivity(webIntent);
}
  • 1

    https://stackoverflow.com/questions/11108441/play-youtube-video-in-full-screen-mode-in-my-android-app

  • 1

    https://stackoverflow.com/questions/14064244/how-to-force-a-video-to-play-in-fullscreen-in-youtube-player

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.