Home > hls.js > SubtitleStreamController > onSubtitleTrackSwitch

SubtitleStreamController.onSubtitleTrackSwitch() method

Signature:

onSubtitleTrackSwitch(event: Events.SUBTITLE_TRACK_SWITCH, data: TrackSwitchedData): void;

Parameters

Parameter Type Description
event Events.SUBTITLE_TRACK_SWITCH
data TrackSwitchedData

Returns:

void