Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
isTypeSupported (MediaSource)

isTypeSupported method

Verifies if the MediaSource supports creating SourceBuffer objects for the specified MIME type.

IE11

 

Syntax

var isSupported = MediaSource.isTypeSupported(type);

Parameters

type [in]

Type: string

The MIME type to query.

Media fileExtension settingMime type query
Audio mp3mp3audio/mpeg
Audio mp4 m4aaudio/mp4

codecs=

Dolby Digital Plus: "ec-3"
Dolby Digital: "ac-3"
Audio WebMwebmaudio/webm
Video mp4mp4video/mp4

codecs=

H.264 (AVC1): "avc1.42E01E"
H.264 (AVC3): "avc3"
Video webmwebmvideo/webm
Video HLSm3u9application/x-mpegURL, audio/x-mpegurl, or vnd.apple.mpegURL
Audio WAV(PCM).wavaudio/wav, audio/wave, audio/x-wave, audio/vnd.wave
Audio wma.wmaaudio/x-ms-wma

 

Return value

Type: boolean

true if the MediaSource supports creating buffers for the specified MIME type; otherwise, false.

Remarks

Dolby Digital Plus and Dolby Digital audio codec support is only available in Microsoft Edge. See the Microsoft Edge Dev Guide for more info.

See also

MediaSource

 

 

Show:
© 2015 Microsoft