Home > hls.js > SubtitleTrackController > onLevelSwitching

SubtitleTrackController.onLevelSwitching() method

Signature:

protected onLevelSwitching(event: Events.LEVEL_SWITCHING, data: LevelSwitchingData): void;

Parameters

Parameter

Type

Description

event

Events.LEVEL_SWITCHING

data

LevelSwitchingData

**Returns:**

void