I'm trying to embed a youtube video on a phonegap build app.
I have a page that shows the video's title and description and below them the video's embed.
On my browser it works great, but on my device it doesn't show the video it all. It's there, just not seeing anything (not black screen).
I'm using the following code to embed it:
<div class="video_embed"> <object width="560" height="315"> <param name="movie" value="http://www.youtube.com/v/**********?rel=0&controls=0&showinfo=0"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/**********?rel=0&controls=0&showinfo=0" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed> </object> </div> The asterisk (*) represents the video id.
Please bare in mind - I'm only using phonegap build, Not CLI and not Cordova. I have no PhoneGap.plist file.
Bonus question - How can I use jQuery to change the embeded object after loading to fit the screen of my device?