You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Created) (JIRA)" <ji...@apache.org> on 2011/11/28 21:39:40 UTC

[jira] [Created] (CB-40) Displaying video youtube on app and not in safari

Displaying video youtube on app and not in safari
-------------------------------------------------

                 Key: CB-40
                 URL: https://issues.apache.org/jira/browse/CB-40
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS
            Reporter: Shazron Abdullah


reported at: https://github.com/phonegap/phonegap-iphone/issues/327
by: https://github.com/GustavoCostaW
 
Hey guys, I'm trying to view a video on youtube in my own application, except that when I click it opens to display on safari, I do not want it open in Safari, I tried several embed codes, as iframe, objects ... someone could help me how to display the video on those sites that appear normal, without leaving the app and open safari? thank you!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-40) Displaying video youtube on app and not in safari

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201766#comment-13201766 ] 

Shazron Abdullah commented on CB-40:
------------------------------------

Cannot repro on 1.5.0 on a device. A standard embed plays fine with the following whitelist exceptions:

\*.youtube.\*
\*.google.\*
\*.ytimg.\*

                
> Displaying video youtube on app and not in safari
> -------------------------------------------------
>
>                 Key: CB-40
>                 URL: https://issues.apache.org/jira/browse/CB-40
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/327
> by: https://github.com/GustavoCostaW
>  
> Hey guys, I'm trying to view a video on youtube in my own application, except that when I click it opens to display on safari, I do not want it open in Safari, I tried several embed codes, as iframe, objects ... someone could help me how to display the video on those sites that appear normal, without leaving the app and open safari? thank you!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-40) Displaying video youtube on app and not in safari

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158737#comment-13158737 ] 

Shazron Abdullah commented on CB-40:
------------------------------------

comment by: https://github.com/amir-amirudin

I can confirm this by using HTML Embed, iFrame and/or Object tag inside an app, a desired content will be opened in a new Safari Window instead of within the app.

I did a test on PhoneGap 1.0 & 1.1 on both iOS 4 & 5 emulator and both behave the same. I also did a research and it is possible to use the said tags within UIWebView in a normal condition (without PhoneGap):

: http://stackoverflow.com/questions/5167907/is-it-possible-to-use-iframe-in-uiwebview
: http://stackoverflow.com/questions/7268185/youtube-embed-html-for-uiwebview-not-working-on-ios-4-2-iphone-3g
: http://iphonedevelopertips.com/video/display-youtube-videos-without-exiting-your-application.html

Please refer current tenderapp issue related to this:

https://phonegap.tenderapp.com/discussions/problems/133-brightcove-vid-player-code-opens-in-safari-not-app-view
https://phonegap.tenderapp.com/discussions/problems/135-android-video-playback-issue
[suspicious] https://phonegap.tenderapp.com/discussions/problems/143-linking-to-google-maps
[suspicious] https://phonegap.tenderapp.com/discussions/problems/137-advertisement-plugin-uiviewcontroller

The following code can be used to repro the issue:
http://pastebin.com/Y0Yr38bv

Hope to hear feedback from you guys.

Thanks
                
> Displaying video youtube on app and not in safari
> -------------------------------------------------
>
>                 Key: CB-40
>                 URL: https://issues.apache.org/jira/browse/CB-40
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/327
> by: https://github.com/GustavoCostaW
>  
> Hey guys, I'm trying to view a video on youtube in my own application, except that when I click it opens to display on safari, I do not want it open in Safari, I tried several embed codes, as iframe, objects ... someone could help me how to display the video on those sites that appear normal, without leaving the app and open safari? thank you!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CB-40) Displaying video youtube on app and not in safari

Posted by "Shazron Abdullah (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201766#comment-13201766 ] 

Shazron Abdullah edited comment on CB-40 at 2/6/12 11:23 PM:
-------------------------------------------------------------

Cannot repro on 1.5.0 on a iOS 5 device. A standard embed plays fine with the following whitelist exceptions:

\*.youtube.\*
\*.google.\*
\*.ytimg.\*

                
      was (Author: shazron):
    Cannot repro on 1.5.0 on a device. A standard embed plays fine with the following whitelist exceptions:

\*.youtube.\*
\*.google.\*
\*.ytimg.\*

                  
> Displaying video youtube on app and not in safari
> -------------------------------------------------
>
>                 Key: CB-40
>                 URL: https://issues.apache.org/jira/browse/CB-40
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/327
> by: https://github.com/GustavoCostaW
>  
> Hey guys, I'm trying to view a video on youtube in my own application, except that when I click it opens to display on safari, I do not want it open in Safari, I tried several embed codes, as iframe, objects ... someone could help me how to display the video on those sites that appear normal, without leaving the app and open safari? thank you!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-40) Displaying video youtube on app and not in safari

Posted by "Randy McMillan (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190630#comment-13190630 ] 

Randy McMillan commented on CB-40:
----------------------------------

You can use the ChildBrowser. Be sure to modify the ExternalHosts in PhoneGap.plist (iOS) in the project.

Use www.youtube.com with out http://
                
> Displaying video youtube on app and not in safari
> -------------------------------------------------
>
>                 Key: CB-40
>                 URL: https://issues.apache.org/jira/browse/CB-40
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/327
> by: https://github.com/GustavoCostaW
>  
> Hey guys, I'm trying to view a video on youtube in my own application, except that when I click it opens to display on safari, I do not want it open in Safari, I tried several embed codes, as iframe, objects ... someone could help me how to display the video on those sites that appear normal, without leaving the app and open safari? thank you!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-40) Displaying video youtube on app and not in safari

Posted by "Shazron Abdullah (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-40.
--------------------------------

    Resolution: Cannot Reproduce
    
> Displaying video youtube on app and not in safari
> -------------------------------------------------
>
>                 Key: CB-40
>                 URL: https://issues.apache.org/jira/browse/CB-40
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/327
> by: https://github.com/GustavoCostaW
>  
> Hey guys, I'm trying to view a video on youtube in my own application, except that when I click it opens to display on safari, I do not want it open in Safari, I tried several embed codes, as iframe, objects ... someone could help me how to display the video on those sites that appear normal, without leaving the app and open safari? thank you!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-40) Displaying video youtube on app and not in safari

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201767#comment-13201767 ] 

Shazron Abdullah commented on CB-40:
------------------------------------

I used the following code:

{code:html}
<embed src="http://www.youtube.com/v/IJJ8_qNELqw?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed> 
{code}
                
> Displaying video youtube on app and not in safari
> -------------------------------------------------
>
>                 Key: CB-40
>                 URL: https://issues.apache.org/jira/browse/CB-40
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/327
> by: https://github.com/GustavoCostaW
>  
> Hey guys, I'm trying to view a video on youtube in my own application, except that when I click it opens to display on safari, I do not want it open in Safari, I tried several embed codes, as iframe, objects ... someone could help me how to display the video on those sites that appear normal, without leaving the app and open safari? thank you!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira