The MediaRecorder.isTypeSupported() method returns a Boolean which is true if the MIME type specified is one the user agent can record.


var canRecord = MediaRecorder.isTypeSupported(mimeType)


The mimeType to check.

Return value

true if the MediaRecorder implementation is capable of recording Blob objects for the specified MIME type. Recording may still fail if there are insufficient resources to support the recording and encoding process. If the value is false, the user agent is incapable of recording the specified format.


var types = ["video/webm", 

for (var i in types) { 
  console.log( "Is " + types[i] + " supported? " + (MediaRecorder.isTypeSupported(types[i]) ? "Maybe!" : "Nope :(")); 


Specification Status Comment
MediaStream Recording
The definition of 'isTypeSupported()' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 47Edge ? Firefox Full support 25IE ? Opera Full support 36Safari ? WebView Android Full support 47Chrome Android Full support 47Edge Mobile ? Firefox Android Full support 25Opera Android Full support 36Safari iOS ? Samsung Internet Android Full support 5.0


Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

Document Tags and Contributors

Contributors to this page: estelle, lucian95, Sheppy, jpmedley, miguelao, rolfedh
Last updated by: estelle,