MediaPlayerEntity class

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

Annotations

Constructors

MediaPlayerEntity({double? currentTime, double? duration, bool? ended, bool? fullscreen, bool? livestream, String? label, bool? loop, MediaType? mediaType, bool? muted, bool? paused, bool? pictureInPicture, String? playerType, double? playbackRate, String? quality, int? volume})
const

Properties

currentTime double?
The current playback time position within the media in seconds
final
duration double?
A double-precision floating-point value indicating the duration of the media in seconds
final
ended bool?
If playback of the media has ended
final
fullscreen bool?
Whether the video element is fullscreen
final
hashCode int
The hash code for this object.
no setterinherited
label String?
Human readable name given to tracked media content.
final
livestream bool?
Whether the media is a live stream
final
loop bool?
If the video should restart after ending
final
mediaType MediaType?
Type of media content.
final
muted bool?
If the media element is muted
final
paused bool?
If the media element is paused
final
pictureInPicture bool?
Whether the video element is showing picture-in-picture
final
playbackRate double?
Playback rate (1 is normal)
final
playerType String?
Type of the media player (e.g., com.youtube-youtube, com.vimeo-vimeo, org.whatwg-media_element)
final
quality String?
Quality level of the playback (e.g., 1080p).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
volume int?
Volume percent (0 to 100)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited