MediaPlayerEntity

data class MediaPlayerEntity @JvmOverloads constructor(var currentTime: Double? = null, var duration: Double? = null, var ended: Boolean? = null, var fullscreen: Boolean? = null, var livestream: Boolean? = null, var label: String? = null, var loop: Boolean? = null, var mediaType: MediaType? = null, var muted: Boolean? = null, var paused: Boolean? = null, var pictureInPicture: Boolean? = null, var playerType: String? = null, var playbackRate: Double? = null, var quality: String? = null, var volume: Int? = null)

Properties for the media player context entity attached to media events. Entity schema: iglu:com.snowplowanalytics.snowplow.media/player/jsonschema/1-0-0.

Parameters

currentTime

The current playback time position within the media in seconds.

duration

Duration of the media in seconds.

ended

If playback of the media has ended.

fullscreen

Whether the video element is fullscreen.

livestream

Whether the media is a livestream.

label

Human readable name given to tracked media content.

loop

If the video should restart after ending.

mediaType

Type of media content.

muted

If the media element is muted.

paused

If the media element is paused.

pictureInPicture

Whether the video element is showing picture-in-picture.

playerType

Type of the media player (e.g., com.youtube-youtube, com.vimeo-vimeo, org.whatwg-media_element).

playbackRate

Playback rate (1 is normal).

quality

Quality level of the playback (e.g., 1080p, 720p).

volume

Volume percent (0 is muted, 100 is max).

Constructors

Link copied to clipboard
constructor(currentTime: Double? = null, duration: Double? = null, ended: Boolean? = null, fullscreen: Boolean? = null, livestream: Boolean? = null, label: String? = null, loop: Boolean? = null, mediaType: MediaType? = null, muted: Boolean? = null, paused: Boolean? = null, pictureInPicture: Boolean? = null, playerType: String? = null, playbackRate: Double? = null, quality: String? = null, volume: Int? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The percent of the way through the media (0 to 100)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var volume: Int?