Home > hls.js > Hls > getMediaSource

Hls.getMediaSource() method

Get the MediaSource global used for MSE playback (ManagedMediaSource, MediaSource, or WebKitMediaSource).

Signature:

static getMediaSource(): typeof MediaSource | undefined;

Returns:

typeof MediaSource | undefined