Variable MediaSource
MediaSource: {
canConstructInDedicatedWorker: boolean;
prototype: MediaSource;
isTypeSupported(type: string): boolean;
new (): MediaSource;
}
canConstructInDedicatedWorker: boolean;
prototype: MediaSource;
isTypeSupported(type: string): boolean;
new (): MediaSource;
}
Type Declaration
- new (): MediaSource
Returns MediaSource
ReadonlycanConstructInDedicatedWorker: booleanprototype: MediaSource
isTypeSupported: function
The
MediaSource.isTypeSupported()static method returns a boolean value which istrueif the given MIME type and (optional) codec are likely to be supported by the current user agent.Parameters
- type: string
Returns boolean
The
canConstructInDedicatedWorkerstatic property of the MediaSource interface returnstrueifMediaSourceworker support is implemented, providing a low-latency feature detection mechanism.MDN Reference