Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: xtype video on ANDROID - support please clarify

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    206

    Default xtype video on ANDROID - support please clarify

    Friend,

    Without being required to pay $300 for a simple answer, can I ask someone from Sencha to clarify what is a core requirement for many apps in our multi-media world.

    is it actually possible for Sencha Touch to render video for Android devices?

    There's a lot I like about Sencha Touch, though it's a steep learning curve. But, if the answer to the above is no (and one user recently stated to me - 'yep, I get round it by hiding the video menu item from my android users') then there's a problem.

    Of course everyone likes the iPhone, but there are more Android device users than iPhone these days and it seems that the sencha xtype 'video' doesn't mark up the video tag properly for Android.

    Can I ask for a response from the support team (who I hope do actually look in this section from time to time), so that I, and many like me, can either solve this or move on.

    Thanks
    Allister

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,392

    Default

    The problem we have noticed is that Android doesn't really support things as well as we would like. iOS is still king by a long shot. Video is one of those things Android doesn't do the best on.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    206

    Default

    Hi there - thanks for the reply.

    Yes, I can see that Android is not that helpful - so...is there any workaround or are you saying that, until Android adapt, video will never work on that platform, through Sencha Touch?

    Thanks for your help
    Allister

  4. #4
    Sencha User
    Join Date
    Aug 2010
    Posts
    315

    Default

    I dont know in Android 3.0, but till 2.3.3 the Android Browser simply dont support video tag, this is the first, so to view a video in sencha you have to do location.href ="yourvideourl" that will open the native video player. In phonegap i modified the childBrowser plugin in order to stream a video.Second in order to strream a video on android you have to add moov atom at the beginning of the video, i do this with ffmpeg (qt-faststart) server side.
    http://developer.android.com/guide/a...a-formats.html

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Posts
    206

    Default

    Thanks Steve.

    Just to clarify what you are saying - the location.href ="yourvideourl" is to reference an external webpage that you show with the phonegap childbrowser (never yet got that to work in android myself, though IOS is fine).

    And if I wanted to hold the videos as local assets rather than call a web page? Is that possible?

    Allister

  6. #6
    Sencha User
    Join Date
    Aug 2010
    Posts
    315

    Default

    No, the location.href ="yourvideourl" is your video url not a webpage location.href ="http://yourdomain.com/test.3gp", this is for webapp, in Phonegap is different because location.href dont work and it's because you have to use the plugin. If you hold videos on local asset you dont need the moov atom at the begining of the video and you can still use the childBrowser plugin

  7. #7
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,392

    Default

    just do location.href="myvideo.mp4"; and it will open up the native video player
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  8. #8

    Default

    steve1946,

    How did you get videos to work on Android in Phonegap using ChildBrowser?
    Did you enable hardware acceleration?

    I was only able to get videos working after enabling hardware acceleration but then my Sencha CSS transitions got all choppy.

    If you have a solutions please let me know how you did it.
    http://www.dev4.life - Software Development Blog

  9. #9
    Sencha User
    Join Date
    Aug 2010
    Posts
    315

    Default

    The childBrowser plugin simply open an url from within the app, if the url refers to a video file then the native video player is invoked and the video is played. You are speaking about Android 3.0, this is a bug of the Android Browser in 3.0, if you enable hardaware acceleration in the AndroidManifest.xml the css are broken, but with childBrowser you open the video in native video player so you dont need hardaware acceleration.

  10. #10

    Default

    Well I actually open a Sencha app in ChildBrowser that has a video embeded in a carousel. So I'm not opening the video directly.
    http://www.dev4.life - Software Development Blog

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •