Home > hls.js > Hls > attachMedia

Hls.attachMedia() method

Attaches Hls.js to a media element

Signature:

attachMedia(media: HTMLMediaElement): void;

Parameters

Parameter Type Description
media HTMLMediaElement

Returns:

void