Properties Methods Events Config Options Direct Link
Observable
  Component
    Component
      Container
        Container
          Media
            Video

Class Ext.Video

Package:Ext
Defined In:Video.js
Class:Video
Extends:Media

Provides a simple Container for HTML5 Video.

Useful Properties

Useful Methods

Screenshot:

Example code:

var pnl = new Ext.Panel({
    fullscreen: true,
    items: [
        {
            xtype    : 'video',
            x        : 600,
            y        : 300,
            width    : 175,
            height   : 98,
            url      : "porsche911.mov",
            posterUrl: 'porsche.png'
        }
    ]
});

Config Options

Config OptionsDefined By
 autoPause : Boolean
Will automatically pause the media when the container is deactivated. (Defaults to true)
Media
 autoResume : Boolean
Will automatically start playing the media when the container is activated. (Defaults to false)
Media
 centered : Boolean
Center the Component. Defaults to false.
Component
 componentCls : String
CSS Class to be added to a components root level element to give distinction to it via styling.
Component
 data : Mixed
The initial set of data to apply to the tpl to update the content area of the Component.
Component
 disabled : Boolean
Defaults to false.
Component
 disabledCls : String
CSS class to add when the Component is disabled. Defaults to 'x-item-disabled'.
Component
 draggable : Boolean
Allows the component to be dragged via the touch event.
Component
 enableControls : Boolean
Set this to false to turn off the native media controls (Defaults to true).
Media
 floating : Boolean
Create the Component as a floating and use absolute positioning. Defaults to false.
Component
 floatingCls : Boolean
The class that is being added to this component when its floating. (defaults to x-floating)
Component
 height : Number
The height of this component in pixels.
Component
 hidden : Boolean
Defaults to false.
Component
 monitorOrientation : Boolean
Monitor Orientation change
Component
 posterUrl : String
Location of a poster image to be shown before showing the video.
Video
 preload : Boolean
Will begin preloading the media immediately. (Defaults to true)
Media
 stopMaskTapEvent : Boolean
True to stop the event that fires when you click outside the floating component. Defalts to true.
Component
 styleHtmlCls : String
The class that is added to the content target when you set styleHtmlContent to true. Defaults to 'x-html'
Component
 url : String
Location of the video to play. This should be in H.264 format and in a .mov file format.
Video
 width : Number
The width of this component in pixels.
Component

Public Properties

PropertyDefined By
 draggable : Boolean
Read-only property indicating whether or not the component can be dragged
Component
 items : Ext.util.MixedCollection
The MixedCollection containing all the child items of this container.
Container
 media : Ext.Element
A reference to the underlying audio/video element.
Media
 rendered : Boolean
Read-only property indicating whether or not the component has been rendered.
Component

Public Methods

MethodDefined By

Public Events

EventDefined By