trackVideoView
abstract fun trackVideoView(durationMilliseconds: Long, videoProperties: MediaTracker.VideoProperties?, pageProperties: MediaTracker.PageProperties?, customEventProperties: EventProperties? = null): MediaTracker
Track a Videoview event and return a MediaTracker for tracking user interaction with video content.
The tracker is started in a paused state. If the video is auto-played then you will need to call MediaTracker.play to begin tracking engagement and ensure the completion event properties are correct.
For more information see the MediaTracker documentation.
Parameters
duration
The duration of the video in milliseconds. For videos with an unknown duration such as live streams use the MediaTracker.UNKNOWN_DURATION constant. This can be also be set after creation using MediaTracker.setDuration.
videoProperties
Properties of the video.
pageProperties
Properties of the page hosting the video (if relevant).
customEventProperties
Custom event properties.