Guide applies to: modern

Video

Ext JS provides a video component.

Expand Code

JS Run

  1. Ext.define('MyApp.view.Main', {
  2. extend: 'Ext.Container',
  3. layout: 'fit',
  4. padding: 16,
  5. items:[{
  6. xtype: 'video',
  7. url: 'resources/images/itunes/Sample.mp4',
  8. posterUrl: 'resources/images/itunes/Sample.jpg',
  9. //height: 480,
  10. //width: 384
  11. }]
  12. });
  13. Ext.application({
  14. name: 'MyApp',
  15. mainView: 'MyApp.view.Main'
  16. });