MediaTracking class
Media tracking instance with methods to track media events.
- Annotations
Constructors
- MediaTracking({required String id, required String tracker})
-
const
Properties
- 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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tracker → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
track(
Event event, {List< SelfDescribing> ? contexts, MediaPlayerEntity? player, MediaAdEntity? ad, MediaAdBreakEntity? adBreak}) → Future<void> - Tracks a media player event along with the media entities (e.g., player, session, ad).
-
update(
{MediaPlayerEntity? player, MediaAdEntity? ad, MediaAdBreakEntity? adBreak}) → Future< void> - Updates stored attributes of the media player such as the current playback. Use this function to continually update the player attributes so that they can be sent in the background ping events.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited