Guide applies to: modern
Video
Ext JS provides a video
component.
Expand Code
JS Run
Ext.define('MyApp.view.Main', {
extend: 'Ext.Container',
layout: 'fit',
padding: 16,
items:[{
xtype: 'video',
url: 'resources/images/itunes/Sample.mp4',
posterUrl: 'resources/images/itunes/Sample.jpg',
//height: 480,
//width: 384
}]
});
Ext.application({
name: 'MyApp',
mainView: 'MyApp.view.Main'
});