2012-07-18 158 views
0
Ext.define('Video.view.video', { 
     extend: 'Ext.Container', 

     requires: [ 
      'Ext.Video' 
     ], 
     config: { 
      layout: 'fit', 
      items: [{ 
       xtype: 'video', 
       url: ['aa.mp4'], 
       loop: true, 
       posterUrl: 'resources/images/cover.jpg' 
      }] 
     } 
    }); 

這是我的代碼,但不顯示視頻播放視頻文件2

回答

0

請@Amit庫馬爾你可以嘗試這樣的事情,

Ext.define('myapp.view.Video', { 
    extend: 'Ext.Container', 
    xtype: 'myvideo', 

    requires: [ 
     'Ext.Video' 
    ], 

    config: { 
     layout: 'fit', 

     items: [ 
      { 
       xtype: 'video', 
       enableControls: false, 
       x : 600, 
       y : 300, 
       width : 300, 
       height : 250, 
       url: 'app/images/VID.3GP', 
       loop: true, 
       posterUrl: 'app/images/transfers.png' 
      }, 
     ] 
    } 
}); 

我希望這可以幫助。 :)

enter image description here

+0

親愛hekomobile,我已經使用這個代碼,但不能播放視頻 – 2012-07-19 08:12:38

+0

請啓用控件以'真'。 :) – hekomobile 2012-07-19 15:44:59

+0

艾米特,我也陷入了這個問題。你有任何解決方案? – Aakash 2013-06-25 09:29:52