Home > hls.js > Hls > attachMedia
Hls.attachMedia() method
Attaches Hls.js to a media element
Signature:
attachMedia(data: HTMLMediaElement | MediaAttachingData): void;
Parameters
Parameter |
Type |
Description |
---|---|---|
data |
HTMLMediaElement | MediaAttachingData |
void