MediaPlaybackRateChangeEvent

class MediaPlaybackRateChangeEvent @JvmOverloads constructor(var newRate: Double, var previousRate: Double? = null) : AbstractSelfDescribing, MediaPlayerUpdatingEvent

Media player event sent when the playback rate has changed.

Parameters

newRate

Playback rate after the change (1 is normal).

previousRate

Playback rate before the change (1 is normal). If not set, the previous rate is taken from the last setting in media player.

Constructors

Link copied to clipboard
constructor(newRate: Double, previousRate: Double? = null)

Functions

Link copied to clipboard

Adds a list of context entities to the existing ones.

Link copied to clipboard

Adds a list of context entities to the existing ones.

Link copied to clipboard
fun trueTimestamp(trueTimestamp: Long?): AbstractEvent

Set the custom timestamp of the event.

Link copied to clipboard
open override fun update(player: MediaPlayerEntity)

Updates event properties based on the player entity but also updates the player properties based on the event.

Properties

Link copied to clipboard
open override var contexts: List<SelfDescribingJson>
Link copied to clipboard
open override val dataPayload: Map<String, Any?>

The payload for the event.

Link copied to clipboard
Link copied to clipboard

Used for events whose properties are added as entities, e.g. Ecommerce events

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val schema: String
Link copied to clipboard
open override var trueTimestamp: Long?