1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    2
    Vote Rating
    0
    shujaat is on a distinguished road

      0  

    Default Play Video not working

    Play Video not working


    Code:
    {
           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 am trying to play a remote video from a server. Problem is that it only play mp4 videos. It doesn't play avi and some other video formats.
    Is there any restrictions on file formats? or something wrong with code or xtype:video?
    Btw I am trying it in chrome.



  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    872
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    HTML5 video will only support certain file formats like mp4
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread