Package | com.adobe.mediacore.events |
Class | public final class MediaPlayerItemEvent |
Inheritance | MediaPlayerItemEvent ![]() |
Property | Defined By | ||
---|---|---|---|
item : MediaPlayerItem [read-only]
The media item associated with this event. | MediaPlayerItemEvent |
Method | Defined By | ||
---|---|---|---|
MediaPlayerItemEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, item:MediaPlayerItem = null)
Default constructor
| MediaPlayerItemEvent | ||
clone():Event [override]
| MediaPlayerItemEvent | ||
[static]
Factory method
| MediaPlayerItemEvent |
Constant | Defined By | ||
---|---|---|---|
AUDIO_UPDATED : String = audioUpdated [static]
Event dispatched when a media player item is updated. | MediaPlayerItemEvent | ||
CAPTION_UPDATED : String = captionUpdated [static]
Event dispatched when a media player item is updated. | MediaPlayerItemEvent | ||
ITEM_CREATED : String = itemCreated [static]
Event dispatched when a media player item is created. | MediaPlayerItemEvent | ||
ITEM_UPDATED : String = itemUpdated [static]
Event dispatched when a media player item is updated. | MediaPlayerItemEvent | ||
MASTER_UPDATED : String = masterUpdated [static]
Event dispatched when a media player item is updated. | MediaPlayerItemEvent |
item | property |
item:MediaPlayerItem
[read-only] The media item associated with this event.
public function get item():MediaPlayerItem
MediaPlayerItemEvent | () | Constructor |
public function MediaPlayerItemEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, item:MediaPlayerItem = null)
Default constructor
Parameterstype:String — Event type.
| |
bubbles:Boolean (default = false ) — Specifies whether the event can bubble up the display list hierarchy.
| |
cancelable:Boolean (default = false ) — Specifies whether the behavior associated with the event can be prevented.
| |
item:MediaPlayerItem (default = null ) — Associated media item.
|
clone | () | method |
override public function clone():Event
Returns
Event |
create | () | method |
public static function create(type:String, item:MediaPlayerItem):MediaPlayerItemEvent
Factory method
Parameters
type:String — event type.
| |
item:MediaPlayerItem — associated media item
|
MediaPlayerItemEvent — a valid MediaPlayerItemEvent instance.
|
AUDIO_UPDATED | Constant |
public static const AUDIO_UPDATED:String = audioUpdated
Event dispatched when a media player item is updated. For certain streams that contain audio tracks that are only detectable at playback time, this event is fired when new audio tracks are available.
CAPTION_UPDATED | Constant |
public static const CAPTION_UPDATED:String = captionUpdated
Event dispatched when a media player item is updated. For live/linear streams the client must periodically refresh the media resource to detect the new available content. When this happen certain media characteristics might change.
ITEM_CREATED | Constant |
public static const ITEM_CREATED:String = itemCreated
Event dispatched when a media player item is created. The newly created media player item can be accessed through item property of this event.
ITEM_UPDATED | Constant |
public static const ITEM_UPDATED:String = itemUpdated
Event dispatched when a media player item is updated. For live/linear streams the client must periodically refresh the media resource to detect the new available content. When this happen certain media characteristics might change.
MASTER_UPDATED | Constant |
public static const MASTER_UPDATED:String = masterUpdated
Event dispatched when a media player item is updated. For live/linear streams the client must periodically refresh the media resource to detect the new available content. When this happen certain media characteristics might change.