extjs - Play Video in Sencha Touch 2 -
{ xtype:'panel', flex:1, layout:'vbox', items: [ { xtype: 'video', id:'videoplayer', enablecontrols: true, url: filepath, loop: false, flex:1, posterurl: thumbpath, }, { xtype:'panel', cls: 'side_detail_bottom_title', html: 'video title: '+title, } ]
}
i trying play remote video server. problem play mp4 videos. doesn't play avi , other video formats.
is there restrictions on file formats? or wrong code or xtype:video?
btw trying in chrome.
the video element officialy supports mp4, webm , ogg. http://www.w3schools.com/html/html5_video.asp
if provide urls these 3 formats browser use format supports automatically.
for example, ios supports mp4 , android supports webm. provide urls these formats , ios automatically play mp4. android play webm.
Comments
Post a Comment