facebook

dynamic loading of HTMl 5 w/ youtube video embeded

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #336451 Reply

    Yann
    Member

    Hello,
    in my project i’ve a html widget populated by remote page (ajax).
    i developped a script who detect if a video link is in a string and replace link by iframe video
    when i put this example code in my html widget :

    <iframe src="http://www.youtube.com/embed/lTx3G6h2xyA?wmode=opaque width="320" height="220"></iframe>

    in test center i’ve this message:
    See attachment Capture.PNG
    with safari my video run as well and displayed

    but when i build ios native app, my iPhone quit my app and open the link automaticly in safari
    ?????
    Any idea?
    Thanks
    Yann

    Attachments:
    You must be logged in to view attached files.
    #336632

    support-michael
    Keymaster

    No idea exactly what is up here. A word of caution you don’t make it easy by loading html fragments into your DOM asynchronously….

    >but when i build ios native app, my iPhone quit my app and open the link automaticly in safari

    My hunch is that the default ios youtube handler is intercepting the URL which uses mobile safari to run the html player. You mention that you tested with safari.

    Remove all unnecessary variables to your problem and create a simple app that uses your iframe/youtube player. Does it work?

    Also what other research have you done as we can compare notes going forward.

    #336658

    Yann
    Member

    Hello Wayne
    i tried to build a simple native app and i have the same problem
    native app call safari mobile and display video in safari.
    I saw that I was not the only one to have this problem on starkoverflow
    recommended solution :

    open Cordova.plist and set OpenAllWhitelistURLsInWebView to YES.

    i think to a possible solution : to call mobione video widget from my remote page.
    i think i will need modify css to do it
    i try and i come back to you
    Thanks
    Yann

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: dynamic loading of HTMl 5 w/ youtube video embeded

You must be logged in to post in the forum log in