-
12 Nov 2010 7:07 AM #1
"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:
Whats wrong here? Did I miss something? Or is there any bug..?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' } ] }); } });
I get this:
Check out the attachment!Sencha Touch RC1
-
17 Nov 2010 7:43 AM #2
Sorry guys, it was a Server-problem.
Sencha Touch RC1
-
22 Nov 2010 11:51 AM #3
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.
-
22 Nov 2010 12:06 PM #4
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
-
22 Nov 2010 3:17 PM #5
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.
-
22 Nov 2010 3:36 PM #6
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.
-
22 Nov 2010 4:13 PM #7
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!
-
22 Nov 2010 5:24 PM #8
sencha included video (space.mp4) is working on ios 4.
-
23 Nov 2010 3:36 AM #9
If it helps,
my server configurations was set to not allow videostreaming.
Similar Threads
-
msgTarget "side" doesn't work on Ext.form.TextField
By JayOtt in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 2 Sep 2010, 6:53 AM -
How-to:find tree node of depth >= 2 by id? the "getNodeById doesn't work"
By jiucenglou in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 7 Mar 2008, 10:27 AM -
Event "move" doesn't work correctly in TreePanel
By igorek in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 1 Feb 2008, 6:23 AM


Reply With Quote