| Package | org.openvideoplayer.plugins |
| Class | public class OvpPlayerEvent |
| Inheritance | OvpPlayerEvent flash.events.Event |
| Property | Defined By | ||
|---|---|---|---|
| data : Object [read-only] | OvpPlayerEvent | ||
| Method | Defined By | ||
|---|---|---|---|
OvpPlayerEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false) | OvpPlayerEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| BUFFERING : String = buffering [static]
When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when
the player is buffering video data. | OvpPlayerEvent | ||
| COMPLETE : String = complete [static]
When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when
a video has completed. | OvpPlayerEvent | ||
| CONNECTING : String = connecting [static]
When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when
the player is trying to connect. | OvpPlayerEvent | ||
| CONNECTION_CREATED : String = connectionCreated [static]
The player can dispatch this event to expose the OvpConnection object used to connect to
a server. | OvpPlayerEvent | ||
| CUEPOINT : String = cuepoint [static]
The player can dispatch CUEPOINT events if you set a cue point on the object implemeting the IOvpPlayer interface. | OvpPlayerEvent | ||
| DEBUG_MSG : String = debugmsg [static]
Plug-ins can dispatch this event to allow a player to easily show an end-user what is happening. | OvpPlayerEvent | ||
| ERROR : String = error [static]
The player can dispatch serious errors if it wishes to. | OvpPlayerEvent | ||
| NETSTREAM_CREATED : String = netStreamCreated [static]
The player can dispatch this event to expose the OvpNetStream object used to
play the media. | OvpPlayerEvent | ||
| PAUSED : String = paused [static]
When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when
the player has paused the video. | OvpPlayerEvent | ||
| PLAYING : String = playing [static]
When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when
the player is playing a video. | OvpPlayerEvent | ||
| SEEKING : String = seeking [static]
When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when
the player is seeking. | OvpPlayerEvent | ||
| START_NEW_ITEM : String = startnewitem [static]
When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when a new
item in a playlist is starting or single content is starting. | OvpPlayerEvent | ||
| STATE_CHANGE : String = statechange [static]
The player dispatches a STATE_CHANGE event when it's state has changed. | OvpPlayerEvent | ||
| SWITCH_ACKNOWLEDGED : String = switchAcknowledged [static]
The player can dispatch this event when it receives a "NetStream.Play.Transition" event meaning the
server has acknowledged the switch request and is in the process of switching streams. | OvpPlayerEvent | ||
| SWITCH_COMPLETE : String = switchComplete [static]
The player can dispatch this event when it receives a "NetStream.Play.TransitionComplete" event
meaning the switch is complete and is visible to the user. | OvpPlayerEvent | ||
| SWITCH_REQUESTED : String = switchRequested [static]
The player can dispatch this event when it is playing multi-bitrate content (dynamic streaming) and
either a manual switch has been requested or a switching rule has requested a switch to a new index. | OvpPlayerEvent | ||
| VOLUME_CHANGE : String = volumechange [static]
The volume changed in the player. | OvpPlayerEvent | ||
| WAITING : String = waiting [static]
When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when
the player is in a wait state, such as waiting for an RSS playlist to parse. | OvpPlayerEvent | ||
| data | property |
data:Object [read-only] public function get data():Object| OvpPlayerEvent | () | Constructor |
public function OvpPlayerEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)type:String | |
data:Object (default = null) | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) |
| BUFFERING | Constant |
public static const BUFFERING:String = bufferingWhen listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player is buffering video data.
| COMPLETE | Constant |
public static const COMPLETE:String = completeWhen listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when a video has completed.
| CONNECTING | Constant |
public static const CONNECTING:String = connectingWhen listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player is trying to connect.
| CONNECTION_CREATED | Constant |
public static const CONNECTION_CREATED:String = connectionCreatedThe player can dispatch this event to expose the OvpConnection object used to connect to a server. If you are only interested in status, such as "connecting", "playing", etc., listen for the STATE_CHANGE event.
The data object for the event will contain:
| CUEPOINT | Constant |
public static const CUEPOINT:String = cuepoint
The player can dispatch CUEPOINT events if you set a cue point on the object implemeting the IOvpPlayer interface.
The data object for the event will contain whatever you passed to the addCuePoint method on the IOvpPlayer interface.
| DEBUG_MSG | Constant |
public static const DEBUG_MSG:String = debugmsgPlug-ins can dispatch this event to allow a player to easily show an end-user what is happening. The data object will be the debug message as a String.
| ERROR | Constant |
public static const ERROR:String = errorThe player can dispatch serious errors if it wishes to. The data object will be an error message in this case.
| NETSTREAM_CREATED | Constant |
public static const NETSTREAM_CREATED:String = netStreamCreated| PAUSED | Constant |
public static const PAUSED:String = pausedWhen listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player has paused the video.
| PLAYING | Constant |
public static const PLAYING:String = playingWhen listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player is playing a video.
| SEEKING | Constant |
public static const SEEKING:String = seekingWhen listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player is seeking.
| START_NEW_ITEM | Constant |
public static const START_NEW_ITEM:String = startnewitemWhen listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when a new item in a playlist is starting or single content is starting.
| STATE_CHANGE | Constant |
public static const STATE_CHANGE:String = statechangeThe player dispatches a STATE_CHANGE event when it's state has changed. The data object will contain one of the following values below to indicate state.
| SWITCH_ACKNOWLEDGED | Constant |
public static const SWITCH_ACKNOWLEDGED:String = switchAcknowledged
The player can dispatch this event when it receives a "NetStream.Play.Transition" event meaning the
server has acknowledged the switch request and is in the process of switching streams.
The data object for the event will contain:
| SWITCH_COMPLETE | Constant |
public static const SWITCH_COMPLETE:String = switchComplete| SWITCH_REQUESTED | Constant |
public static const SWITCH_REQUESTED:String = switchRequested
The player can dispatch this event when it is playing multi-bitrate content (dynamic streaming) and
either a manual switch has been requested or a switching rule has requested a switch to a new index.
The data object for the event will contain these items:
| VOLUME_CHANGE | Constant |
public static const VOLUME_CHANGE:String = volumechangeThe volume changed in the player. The data object will be an Number with a value from 0 (muted) to 1 (full volume);
| WAITING | Constant |
public static const WAITING:String = waitingWhen listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player is in a wait state, such as waiting for an RSS playlist to parse.