Packagefeathers.media
Interfacepublic interface IVideoPlayer extends IAudioPlayer, ITimedMediaPlayer, IMediaPlayer
Implementors VideoPlayer

Product Version : Feathers 2.2.0

An interface media players that play video content.



Public Properties
 PropertyDefined By
 InheritedcurrentTime : Number
[read-only] The current position of the playhead, in seconds.
ITimedMediaPlayer
 InheritedisPlaying : Boolean
[read-only] Determines if the media content is currently playing.
ITimedMediaPlayer
  nativeHeight : Number
[read-only] The original, native height of the loaded video.
IVideoPlayer
  nativeWidth : Number
[read-only] The original, native width of the loaded video.
IVideoPlayer
 InheritedsoundTransform : SoundTransform
Controls properties of the currently playing audio, like volume and panning.
IAudioPlayer
 InheritedtotalTime : Number
[read-only] The maximum position of the playhead, in seconds.
ITimedMediaPlayer
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function):void
Adds a listener for an event type.
IFeathersEventDispatcher
 Inherited
dispatchEvent(event:Event):void
Dispatches an event to all listeners added for the specified event type.
IFeathersEventDispatcher
 Inherited
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
Dispatches an event from the pool with the specified to all listeners for the specified event type.
IFeathersEventDispatcher
 Inherited
hasEventListener(type:String, listener:Function = null):Boolean
Checks if a listener has been added for the specified event type.
IFeathersEventDispatcher
 Inherited
pause():void
Pauses the media content.
ITimedMediaPlayer
 Inherited
play():void
Plays the media content.
ITimedMediaPlayer
 Inherited
removeEventListener(type:String, listener:Function):void
Removes a listener for an event type.
IFeathersEventDispatcher
 Inherited
removeEventListeners(type:String = null):void
Removes all listeners for an event type.
IFeathersEventDispatcher
 Inherited
seek(seconds:Number):void
Seeks the media content to a specific position, in seconds.
ITimedMediaPlayer
 Inherited
stop():void
Stops the media content and returns the playhead to the beginning.
ITimedMediaPlayer
 Inherited
Toggles the media content between playing and paused states.
ITimedMediaPlayer
Events
 Event Summary Defined By
  Dispatched when the original, native width or height of the video content is calculated.IVideoPlayer
Property Detail
nativeHeightproperty
nativeHeight:Number  [read-only]

The original, native height of the loaded video.


Implementation
    public function get nativeHeight():Number

See also

nativeWidthproperty 
nativeWidth:Number  [read-only]

The original, native width of the loaded video.


Implementation
    public function get nativeWidth():Number

See also

Event Detail
dimensionsChange Event
Event Object Type: starling.events.Event
Event.type property = feathers.events.MediaPlayerEventType.DIMENSIONS_CHANGE

Dispatched when the original, native width or height of the video content is calculated.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
datanull
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

Dispatched when the original, native width or height of a video player's content is calculated.

See also