hybrid - Opening youtube video within the application - Phonegap application -


I am developing a hybrid application that supports Android and iOS. I need to embed a YouTube video in the app, as if it should be opened within the app.

I have tried to use IFrame and it is working on the browser. But YouTube video in the iPhone, embedded in iframe, is opening in an external browser and is not taking applications. While searching on Google, I came to know that the option of allowing the LLXLRLL to be opened in the webwave in Cordova Plist (Cordova IOS episode). However, it is affecting other places where some URLs should be opened in external browsers and not in the application.

Please suggest that there is a way to integrate YouTube where the video should open inside the app for a hybrid app.

Here's a good

The code is for a quick access. & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Youtube video & lt; / Heading & gt; & Lt; Meta name = "viewport" content = "width = tool-width; initial-scale = 1.0; maximum-scale = 1.0; user-scalable = 0;" / & Gt; & Lt; Meta name = "apple-mobile-web-app-enabled" content = "yes" /> & Lt; meta name = "apple-mobile-web-app-status-bar-style" content = "black" / & gt; & Lt; Script src = "phonegap-1.2.0.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; iframe width = "560" height = "315" src = "http://www.youtube.com/embed/9HDeEbJyNK8" frameborder = "0" acceptable screen & gt; & Lt; / Iframe & gt; & Lt; / Body & gt; & Lt; / Html & gt; * .youtube.com * .ytimg.com

Videos will also play on your simulator.

Comments

Popular posts from this blog

c++ - ERROR: cannot open source file x11\xlib.h -

c - What are pthread cancelation points used for? -

c# - Show a huge number of data in DevExpress GridView -