Home > hls.js > Hls > once

Hls.once() method

Signature:

once<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