Launching YouTube video in fullscreen (Android)


#1

Hi can someone help with how I can launch YouTube videos in fullscreen on button click in an ionic android app?

The button contains the link to the video.

Thanks.


#2

Hi,

For now, the best way I’ve found to embed youtube was commented here.

Have you tried to hide nav.bar? Something like this should work:

<ion-view title="..." hide-nav-bar="true">
  <ion-content>
    <div class="video-container">
      <iframe src="http://www.youtube.com/embed/..." frameborder="0" allowfullscreen></iframe>
    </div>
  </ion-content>
</ion-view>

I leave this link that may be useful: YouTube Embedded Players and Player Parameters

Regards