Skip to content Skip to sidebar Skip to footer

'audio/wav' Mime Type Not Supported By Mse Soucebuffer Object, But Audio Src Attribute Pointing At .wav Plays Just Fine

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

Solution 1:

Unfortunately, media supported by audio/video elements is not always supported by MSE. This is the case for audio/wav.

See also: https://github.com/w3c/media-source/issues/55

In this case, you could decode the WAV file in your own script, and use the ScriptProcessorNode in the Web Audio API to play it back. A hacky mess for sure, but possible!

Post a Comment for "'audio/wav' Mime Type Not Supported By Mse Soucebuffer Object, But Audio Src Attribute Pointing At .wav Plays Just Fine"