Monitors a NetStream and its sound transform to dispatch various events regarding playback and sound state. Also protects the NetStream object from having its callbacks overwritten by a user.
Events
| Name | Type | Description |
|---|---|---|
BACKWARDS_SEEK | com.google.ads.studio.events.StudioVideoEvent | |
COMPLETE | com.google.ads.studio.events.StudioVideoEvent | |
FIRST_QUARTILE | com.google.ads.studio.events.StudioVideoEvent | |
INTERACTION | com.google.ads.studio.events.StudioEvent | Fired when an interaction event is tracked. |
MID_POINT | com.google.ads.studio.events.StudioVideoEvent | |
MUTE | com.google.ads.studio.events.StudioVideoEvent | |
PAUSE | com.google.ads.studio.events.StudioVideoEvent | |
PLAY | com.google.ads.studio.events.StudioVideoEvent | |
PLAYHEAD_MOVE | com.google.ads.studio.events.StudioVideoEvent | |
REPLAY | com.google.ads.studio.events.StudioVideoEvent | |
STOP | com.google.ads.studio.events.StudioVideoEvent | |
THIRD_QUARTILE | com.google.ads.studio.events.StudioVideoEvent | |
UN_MUTE | com.google.ads.studio.events.StudioVideoEvent | |
VOLUME_CHANGE | com.google.ads.studio.events.StudioVideoEvent |
Instance Methods
Defined in com.google.ads.studio.video:VideoEventDispatcher
addAllEventsListener(handler:Function)
:
voidConvenience method that adds a handler to all events.
invokeImmediateMonitorIteration()
:
voidThis method invokes an immediate iteration of the playhead and sound monitor. This is useful for the StudioTrackingManager when you want any events between stopTracking and startTracking to be discarded.
monitorNetStream(netStream:flash.net:NetStream)
:
voidMonitors a netstream object. This method also watches the callbacks to prevent ours from being written over. If the onStatus or onMetaData callback is overwritten, it is stored and called when an subsequent event occurs.
removeAllEventsListener(handler:Function)
:
voidConvenience method that removes a handler from all events.
unload()
:
voidUnloads the VideoEventDispatcher instance and stops the watches on the netStream objects.