Packagefeathers.media
Interfacepublic interface IProgressiveMediaPlayer extends IMediaPlayer, IFeathersEventDispatcher
Implementors SoundPlayer, VideoPlayer

Product Version : Feathers 2.3.0

A media player that loads its content progressively.



Public Properties
 PropertyDefined By
  bytesLoaded : uint
[read-only] The number of bytes loaded for the current media.
IProgressiveMediaPlayer
  bytesTotal : uint
[read-only] The total number of bytes to load for the current media.
IProgressiveMediaPlayer
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
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
Events
 Event Summary Defined By
  Dispatched periodically when a media player's content is loading to indicate the current progress.IProgressiveMediaPlayer
Property Detail
bytesLoadedproperty
bytesLoaded:uint  [read-only]

The number of bytes loaded for the current media.


Implementation
    public function get bytesLoaded():uint

See also

bytesTotalproperty 
bytesTotal:uint  [read-only]

The total number of bytes to load for the current media.


Implementation
    public function get bytesTotal():uint

See also

Event Detail
loadProgress Event
Event Object Type: starling.events.Event
Event.type property = feathers.events.MediaPlayerEventType.LOAD_PROGRESS

Dispatched periodically when a media player's content is loading to indicate the current progress. The bytesLoaded and bytesTotal properties may be accessed to determine the exact number of bytes loaded.

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.
dataA numeric value between 0 and 1 that indicates how much of the media has loaded so far.
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 periodically when a media player's content is loading to indicate the current progress.

See also