I'm trying create a SourceBuffer from the W3 Media Source Extension API with Mime type 'audio/wav' like so:
let sourceBuffer = mediaSource.addSourceBuffer('audio/wav');
However I get a "NotSupportedError":
Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('audio/wav') is unsupported.
Also, running the following:
MediaSource.isTypeSupported('audio/wav');
in the browser console returns false for both recent versions of firefox and chrome.
If I just set the src of the audio tag to the url of the .wav, everything works fine. It's only when I use a SourceBuffer that I get file type support issues. What DOMString do I need to specify to addSourceBuffer() to have it accept a PCM encoded .wav file?
I'm using Chrome 72 and firefox 68