[opus] WebAssembly Opus Decoder
chris at anthum.com
Sat Dec 7 03:36:40 UTC 2019
Thanks Timothy. Media Source Extensions were much easier and high-level
than using WebAssembly with the Web Audio API. Unfortunately, MSE does not
support MIME "audio/ogg" and I had to put my OpusFiles into a WebM
container file. What could we do to get MSE support for Ogg Opus files? I
created this issue if it helps:
https://github.com/w3c/media-source/issues/245. Would be happy to initiate
the process with the web platform folks.
On Fri, Nov 2, 2018 at 1:10 PM Timothy B. Terriberry <tterribe at xiph.org>
> Chris McGowan wrote:
> > All thoughts and contributions are welcome, and I'm planning to add a
> > seeking feature using HTTP range requests:
> > https://github.com/AnthumChris/opus-stream-decoder/issues/1
> You may also be interested in <https://github.com/brion/ogv.js/> (if
> you're not already aware of it). There might be some useful
> collaboration possible.
> > ~140-220K Wasm binaries currently needed to do this. Only complete
> > files can be downloaded with BaseAudioContext.decodeAudioData():
> Maybe I'm confused, but I thought this was the purpose of the Media
> Source Extensions?
> If you can parse page boundaries with JS/WebAssembly, it is pretty
> simple to assemble a "complete" file from partial file contents by
> prepending the headers in the right place, but to get seamless playback
> between different chunks, you also need to maintain decoder state
> between them. decodeAudioData can't do that, but MSE should be able to?
> opus mailing list
> opus at xiph.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the opus