Packageorg.openvideoplayer.plugins
Classpublic class OvpPlayerEvent
InheritanceOvpPlayerEvent Inheritance flash.events.Event

Events dispatched by a Class implementing the IOvpPlayer interface.



Public Properties
 PropertyDefined By
  data : Object
[read-only]
OvpPlayerEvent
Public Methods
 MethodDefined By
  
OvpPlayerEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)
OvpPlayerEvent
Public Constants
 ConstantDefined 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
Property Detail
dataproperty
data:Object  [read-only]


Implementation
    public function get data():Object
Constructor Detail
OvpPlayerEvent()Constructor
public function OvpPlayerEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)



Parameters
type:String
 
data:Object (default = null)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Constant Detail
BUFFERINGConstant
public static const BUFFERING:String = buffering

When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player is buffering video data.

COMPLETEConstant 
public static const COMPLETE:String = complete

When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when a video has completed.

CONNECTINGConstant 
public static const CONNECTING:String = connecting

When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player is trying to connect.

CONNECTION_CREATEDConstant 
public static const CONNECTION_CREATED:String = connectionCreated

The 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:

CUEPOINTConstant 
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_MSGConstant 
public static const DEBUG_MSG:String = debugmsg

Plug-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.

ERRORConstant 
public static const ERROR:String = error

The player can dispatch serious errors if it wishes to. The data object will be an error message in this case.

NETSTREAM_CREATEDConstant 
public static const NETSTREAM_CREATED:String = netStreamCreated

PAUSEDConstant 
public static const PAUSED:String = paused

When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player has paused the video.

PLAYINGConstant 
public static const PLAYING:String = playing

When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player is playing a video.

SEEKINGConstant 
public static const SEEKING:String = seeking

When listening for an OvpPlayerEvent.STATE_CHANGE event, the data object will be this value when the player is seeking.

START_NEW_ITEMConstant 
public static const START_NEW_ITEM:String = startnewitem

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.

STATE_CHANGEConstant 
public static const STATE_CHANGE:String = statechange

The 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_ACKNOWLEDGEDConstant 
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_COMPLETEConstant 
public static const SWITCH_COMPLETE:String = switchComplete

SWITCH_REQUESTEDConstant 
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_CHANGEConstant 
public static const VOLUME_CHANGE:String = volumechange

The volume changed in the player. The data object will be an Number with a value from 0 (muted) to 1 (full volume);

WAITINGConstant 
public static const WAITING:String = waiting

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.