Emitted when the player's selected audio track has changed.

interface AudioChangedEvent {
    name: string;
    newAudioTrack: AudioTrack;
    oldAudioTrack: AudioTrack;
    timestamp: number;
}

Hierarchy (view full)

Properties

name: string

This event name as it is on the native side.

newAudioTrack: AudioTrack

Audio track that is selected now.

oldAudioTrack: AudioTrack

Audio track that was previously selected.

timestamp: number

The UNIX timestamp in which this event happened.