A tracking manager that reports events to the Studio enabler. It listens for all the events using a VideoEventDispatcher that monitors a NetStream object and Sound object independent of the player.
Constants
| Name | Value | Description |
|---|---|---|
VIDEO_EVENT_PREFIX | EVENT_VIDEO_ | |
VIDEO_INTERACTION_EVENT | EVENT_VIDEO_INTERACTION | |
VIEW_TIMER_EVENT_NAME | EVENT_VIDEO_VIEW_TIMER |
Static Methods
StudioTrackingManager.getInstance(reportingIdentifier:String)
:
StudioTrackingManagerGets an instance of the StudioTrackingManager multiton with the reporting identifier as a key.
Instance Methods
Defined in com.google.ads.studio.video:StudioTrackingManager
getVideoEventDispatcher()
:
VideoEventDispatcherGets the VideoEventDispatcher the tracking manager is listening for events on.
initializeSession()
:
voidInitializes the tracking manager for a video session. This is important as only one tracking manager is created per reporting identifier, however there may be multiple usages of that identifier. We need to reset some variables states that are non-transient per session in order to ensure that the session is tracked properly.
setPlayOffsetTime(offsetTime:Number)
:
voidSets the offset that should be added to the elapsed time of the video. This can be used when the video doesn't start playing at the beginning of the ad.
setPrimary(primary:Boolean)
:
voidSets whether this StudioTrackingManager should report itself as the primary video when calling met events on the enabler. If true, causes the enabler to dispatch standard VAST events for this video.
startMonitoring(netStream:flash.net:NetStream, trackAsAutoPlay:Boolean=false)
:
voidInitiate monitoring on a NetStream and Sound object.
startTracking()
:
voidStart tracking the netStream and sound events. Default is to track the events.
stopTracking()
:
voidStops tracking the netStream and sound events. Default is to track the events.
unload()
:
voidUnloads the tracking manager and preps it for garbage collection as best as possible.
