Emitted when a new subtitle track is added to the player.

interface SubtitleAddedEvent {
    name: string;
    subtitleTrack: SubtitleTrack;
    timestamp: number;
}

Hierarchy (view full)

Properties

name: string

This event name as it is on the native side.

subtitleTrack: SubtitleTrack

Subtitle track that has been added.

timestamp: number

The UNIX timestamp in which this event happened.