In a simple Ionic app, I need to play a video on YouTube. It works fine in the browser, but does not work on the Android device itself. I referenced the code from http://plnkr.co/edit/XmyAhE?p=preview
I use the following code in my ionic application,
<ion-view view-title="{{navTitle}}">
<ion-content has-header="true" padding="true">
<div class="list card">
<div class="item item-divider">
<i class="ion-videocamera"></i>
Video
</div>
<div class="padding">
<object width="100%" height="150">
<param name="movie" value="https://www.youtube.com/v/WzhW20hLp6M?version=3&hl=uk_UA&rel=0"></param>
<param name="allowFullScreen" value="true"></param
<param name="allowscriptaccess" value="always"></param>
<embed src="https://www.youtube.com/v/WzhW20hLp6M?version=3&hl=uk_UA&rel=0" type="application/x-shockwave-flash" width="100%" height="150" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
</div>
</div>
</ion-content>
</ion-view>
Here is the browser output screen:

And the output screen on the Android device:

Please help me.
source
share