1. #1
    Ext User brush51's Avatar
    Join Date
    Nov 2010
    Posts
    13
    Vote Rating
    0
    brush51 is on a distinguished road

      0  

    Exclamation "Video" doesn't work

    "Video" doesn't work


    Hello everyone,

    i have tried out the Video functionality but it doesn't play the video.
    Format of the "sample_00.mov" file is H.264 .

    I have copied the sample code from the documentation:

    Code:
    Ext.setup({
    	onReady: function () {
    		var pnl = new Ext.Panel({
    		    fullscreen: true,
    		    items: [
    		        {
    		            xtype    : 'video',
    		            x        : 320,
    		            y        : 240,
    		            width    : 320,
    		            height   : 240,
    		            url      : "img/sample_00.mov",
    			    posterUrl: 'img/sample_00.png'
    		        }
    		    ]
    		});
    	}
    });
    Whats wrong here? Did I miss something? Or is there any bug..?

    I get this:
    Check out the attachment!
    Attached Images
    Sencha Touch RC1

  2. #2
    Ext User brush51's Avatar
    Join Date
    Nov 2010
    Posts
    13
    Vote Rating
    0
    brush51 is on a distinguished road

      0  

    Default


    Sorry guys, it was a Server-problem.
    Sencha Touch RC1

  3. #3
    Ext User
    Join Date
    Oct 2010
    Posts
    8
    Vote Rating
    0
    ncanton is on a distinguished road

      0  

    Default


    What was the server problem? I'm seeing the same issue. I'm running the kitchen sink sample from my mac's built in web server (ie putting the files in /Library/WebServer/Documents) & video plays fine on the desktop but not on my ipod touch running ios 3.2.

  4. #4
    Touch Premium Member
    Join Date
    Jun 2010
    Posts
    22
    Vote Rating
    0
    jeffremer is on a distinguished road

      0  

    Default


    Browser implementations of the video tag are notoriously picky. You should ensure that your server is sending the correct MIME type. In Apache this would be an AddType directive along the lines of:

    Code:
    AddType video/mp4 .mp4

  5. #5
    Ext User
    Join Date
    Oct 2010
    Posts
    8
    Vote Rating
    0
    ncanton is on a distinguished road

      0  

    Default


    Thanks. I added that to my httpd.conf but to no avail I just remembered to try http://dev.sencha.com/deploy/touch/e...s/kitchensink/ & it's giving the same problem so maybe it's my version of ios? I'm going to try on ios4 & see what happens.

  6. #6
    Touch Premium Member
    Join Date
    Jun 2010
    Posts
    22
    Vote Rating
    0
    jeffremer is on a distinguished road

      0  

    Default


    You could confirm that the Content-Type header is being sent correctly by using curl -I http://yourdomain.com/yourvideo.mp4. You should probably also confirm that the video you are trying to open is H.264 encoded.

  7. #7
    Ext User
    Join Date
    Oct 2010
    Posts
    8
    Vote Rating
    0
    ncanton is on a distinguished road

      0  

    Default


    Content-type looks good using curl:

    Content-Type: video/mp4

    Yep according to the Finder app's info on the file it's H.264

    I found that I'm not on ios 3.2 but 3.1.3. Either way what I'm seeing through google searches is that H.264 mp4's should be working on 3.0 & above. I just tried another mp4 that's working on my webOS device & it's working fine in ios. Directly going to the sencha space.mp4 included vid gives an error message:

    'Cannot Play Movie' Movie could not be played.

    So definitely looks like a formatting issue, at least with 3.1.3 ios. Haven't gotten to try it on a later version but will report back.

    Thanks for your help!

  8. #8
    Ext User
    Join Date
    Oct 2010
    Posts
    8
    Vote Rating
    0
    ncanton is on a distinguished road

      0  

    Default


    sencha included video (space.mp4) is working on ios 4.

  9. #9
    Ext User brush51's Avatar
    Join Date
    Nov 2010
    Posts
    13
    Vote Rating
    0
    brush51 is on a distinguished road

      0  

    Default


    If it helps,
    my server configurations was set to not allow videostreaming.

Similar Threads

  1. msgTarget "side" doesn't work on Ext.form.TextField
    By JayOtt in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 2 Sep 2010, 6:53 AM
  2. How-to:find tree node of depth >= 2 by id? the "getNodeById doesn't work"
    By jiucenglou in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 7 Mar 2008, 10:27 AM
  3. Event "move" doesn't work correctly in TreePanel
    By Invar in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Feb 2008, 6:23 AM

Thread Participants: 2

Tags for this Thread