MediaTrackingConfiguration class

Configuration for a MediaTracking instance.

Annotations

Constructors

MediaTrackingConfiguration({required String id, List<int>? boundaries, List<SelfDescribing>? contexts, MediaPlayerEntity? player, bool pings = true, int? pingInterval, int? maxPausedPings, bool session = true})
const

Properties

boundaries List<int>?
Percentage boundaries of the video to track progress events at
final
contexts List<SelfDescribing>?
List of context entities to track with media events
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for the media tracking instance. The same ID is used for media player session if enabled.
final
maxPausedPings int?
Maximum number of consecutive ping events to send when playback is paused. Defaults to 1 unlesspings are disabled.
final
pingInterval int?
Interval in seconds in which the media ping events are tracked. Defaults to 30 seconds unless pings are disabled.
final
pings bool
Whether to track media ping events. Defaults to true.
final
player MediaPlayerEntity?
Properties of the media player context entity attached to media events.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session bool
Whether to track the media player session context entity along with media events. The session entity contain the id identifier as well as statistics about the media playback.
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