Open video youtube fullscreen

1

I'm using the code below to open a youtube video, however 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);
}
    
asked by anonymous 07.09.2017 / 16:50

0 answers