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

interface SubtitleChangedEvent {
    name: string;
    newSubtitleTrack: SubtitleTrack;
    oldSubtitleTrack: SubtitleTrack;
    timestamp: number;
}

Hierarchy (view full)

  • Event
    • SubtitleChangedEvent

Properties

name: string

This event name as it is on the native side.

newSubtitleTrack: SubtitleTrack

Subtitle track that is selected now.

oldSubtitleTrack: SubtitleTrack

Subtitle track that was previously selected.

timestamp: number

The UNIX timestamp in which this event happened.