createVideoTracker

abstract fun createVideoTracker(duration: Long, eventProperties: EventProperties? = null, title: String? = null, url: Uri? = null, referrer: Uri? = null): MediaTracker

Deprecated

Deprecated, please use the trackVideoView function instead

Deprecated, please use trackVideoView: trackVideoView( duration: Long, videoProperties: MediaTracker.VideoProperties?, pageProperties: MediaTracker.PageProperties?, eventProperties: EventProperties? ): MediaTracker

Create a Media Tracker object for tracking user interaction with video content.¢› A Videoview event will be tracked on creation of the MediaTracker.

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.

eventProperties

The event properties to be tracked with the initial Videoview event and the VideoCompletion event.

title

The video title (default value null)

url

The url of the video (default value null)

referrer

The referring url of the video (default value null)