Skip to main content

MediaSource-1

MediaSource: {
(): MediaSource;
canConstructInDedicatedWorker: boolean;
prototype: MediaSource;
isTypeSupported: boolean;
};

Type Declaration

Returns

MediaSource

canConstructInDedicatedWorker

readonly canConstructInDedicatedWorker: boolean;

The canConstructInDedicatedWorker static property of the MediaSource interface returns true if MediaSource worker support is implemented, providing a low-latency feature detection mechanism.

MDN Reference

prototype

prototype: MediaSource;

isTypeSupported()

isTypeSupported(type): boolean;

The MediaSource.isTypeSupported() static method returns a boolean value which is true if the given MIME type and (optional) codec are likely to be supported by the current user agent.

MDN Reference

Parameters

ParameterType
typestring

Returns

boolean