You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Adam Arsenault (Created) (JIRA)" <ji...@apache.org> on 2012/02/07 04:55:02 UTC

[jira] [Created] (CB-238) Unable to Play Youtube or Vimeo Videos in Android App

Unable to Play Youtube or Vimeo Videos in Android App
-----------------------------------------------------

                 Key: CB-238
                 URL: https://issues.apache.org/jira/browse/CB-238
             Project: Apache Callback
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.4.0
         Environment: Mac OS X 10.6.8
Eclipse SDK, Version: 3.7.0, Build id: I20110613-1736
Android 2.2
            Reporter: Adam Arsenault
            Assignee: Joe Bowser


I am trying to play a video in my app using the Youtube or Vimeo iframe embed code. The video thumbnail appears and I can click play, but the video never actually plays in the simulator. The exact same code works in the Android browser, but as soon as I embed the code into phonegap, the videos do not play.

I have done a bunch of searching around the web and it seems like this is a common problem. Do I have to enable anything special to make this work. It also works great in iOS...

--
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] [Closed] (CB-238) Unable to Play Youtube or Vimeo Videos in Android App

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

Simon MacDonald closed CB-238.
------------------------------

    Resolution: Won't Fix

This is an Android issue where videos won't play in the WebView component so I'm closing it until Google does something for us.
                
> Unable to Play Youtube or Vimeo Videos in Android App
> -----------------------------------------------------
>
>                 Key: CB-238
>                 URL: https://issues.apache.org/jira/browse/CB-238
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.4.0
>         Environment: Mac OS X 10.6.8
> Eclipse SDK, Version: 3.7.0, Build id: I20110613-1736
> Android 2.2
>            Reporter: Adam Arsenault
>            Assignee: Joe Bowser
>
> I am trying to play a video in my app using the Youtube or Vimeo iframe embed code. The video thumbnail appears and I can click play, but the video never actually plays in the simulator. The exact same code works in the Android browser, but as soon as I embed the code into phonegap, the videos do not play.
> I have done a bunch of searching around the web and it seems like this is a common problem. Do I have to enable anything special to make this work. It also works great in iOS...

--
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-238) Unable to Play Youtube or Vimeo Videos in Android App

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

Steren Giannini commented on CB-238:
------------------------------------

Indeed, the Android 2.x Webview cannot play videos. But it can be customized to do so. This is what is done on Android's browser. 

The Webview calls "onShowCustomView" giving it a video player View that needs to be displayed by the application outside the Webview.

I worked on this issue and created a version of cordova for Android that can play videos. You can try a working version in our branch: https://github.com/joshfire/incubator-cordova-android

I created a Pull Request on github: https://github.com/apache/incubator-cordova-android/pull/43
                
> Unable to Play Youtube or Vimeo Videos in Android App
> -----------------------------------------------------
>
>                 Key: CB-238
>                 URL: https://issues.apache.org/jira/browse/CB-238
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.4.0
>         Environment: Mac OS X 10.6.8
> Eclipse SDK, Version: 3.7.0, Build id: I20110613-1736
> Android 2.2
>            Reporter: Adam Arsenault
>            Assignee: Joe Bowser
>
> I am trying to play a video in my app using the Youtube or Vimeo iframe embed code. The video thumbnail appears and I can click play, but the video never actually plays in the simulator. The exact same code works in the Android browser, but as soon as I embed the code into phonegap, the videos do not play.
> I have done a bunch of searching around the web and it seems like this is a common problem. Do I have to enable anything special to make this work. It also works great in iOS...

--
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-238) Unable to Play Youtube or Vimeo Videos in Android App

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

Simon MacDonald commented on CB-238:
------------------------------------

[~steren] I need you to sign the CLA before we can pull in your changes. I've tested them on a number of Android OS versions and they look good.
                
> Unable to Play Youtube or Vimeo Videos in Android App
> -----------------------------------------------------
>
>                 Key: CB-238
>                 URL: https://issues.apache.org/jira/browse/CB-238
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.4.0
>         Environment: Mac OS X 10.6.8
> Eclipse SDK, Version: 3.7.0, Build id: I20110613-1736
> Android 2.2
>            Reporter: Adam Arsenault
>            Assignee: Joe Bowser
>
> I am trying to play a video in my app using the Youtube or Vimeo iframe embed code. The video thumbnail appears and I can click play, but the video never actually plays in the simulator. The exact same code works in the Android browser, but as soon as I embed the code into phonegap, the videos do not play.
> I have done a bunch of searching around the web and it seems like this is a common problem. Do I have to enable anything special to make this work. It also works great in iOS...

--
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-238) Unable to Play Youtube or Vimeo Videos in Android App

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

Simon MacDonald commented on CB-238:
------------------------------------

If you are using the html5 video tag I've talked about the issue many times on this list. I even built a work around while we wait for Google to fix.

Star these issues:

http://code.google.com/p/android/issues/detail?id=8272
http://code.google.com/p/android/issues/detail?id=10526
http://code.google.com/p/android/issues/detail?id=22254

Grab my work around:

http://simonmacdonald.blogspot.com/2011/11/video-player-plugin-for-phonegap.html

I'm going to close this issue for now as it is an Android problem we can't do much about.
                
> Unable to Play Youtube or Vimeo Videos in Android App
> -----------------------------------------------------
>
>                 Key: CB-238
>                 URL: https://issues.apache.org/jira/browse/CB-238
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.4.0
>         Environment: Mac OS X 10.6.8
> Eclipse SDK, Version: 3.7.0, Build id: I20110613-1736
> Android 2.2
>            Reporter: Adam Arsenault
>            Assignee: Joe Bowser
>
> I am trying to play a video in my app using the Youtube or Vimeo iframe embed code. The video thumbnail appears and I can click play, but the video never actually plays in the simulator. The exact same code works in the Android browser, but as soon as I embed the code into phonegap, the videos do not play.
> I have done a bunch of searching around the web and it seems like this is a common problem. Do I have to enable anything special to make this work. It also works great in iOS...

--
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