Home > hls.js > Hls > on

Hls.on() method

Signature:

on<E extends keyof HlsListeners, Context = undefined>(event: E, listener: HlsListeners[E], context?: Context): void;

Parameters

Parameter

Type

Description

event

E

listener

HlsListeners[E]

context

Context

(Optional)

**Returns:**

void