-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please support for audio/wav (PCM) in MSE #55
Comments
Triaging per the new MSE & EME Spec Issue Triage Process. This issue requests support for a new format, and doesn't meet the triage criteria for V1 or V1NonBlocking. |
FWIW, I agree this looks appropriately triaged to VNext. |
Any update on this? I would like to decode audio to PCM with web assemblly and then play in MSE |
This seems to work with MOV files. |
Hi! Fundamentally, it should be easy to stream raw samples and play them sequentially via HTMLMediaElement. (Similar to the old Mozilla Audio API) Without this issue being resolved, how is this possible? There are a number of problems that'd be solved with this addition:
|
It is possible to use Web Audio API |
...or will it be supported by WebCodecs? |
@petamoriken WebCodecs is not specified or implemented. Created the linked code a a proof-of-concept of how WebCodecs potentially could be connected to Web Audio API WebAudio/web-audio-api-v2#61. The gist of the WAV parsing algorithm is based on https://stackoverflow.com/a/35248852. Extended to be used with AudioWorkletProcessor https://github.com/guest271314/AudioWorkletStream/blob/master/audioWorklet.js. Similar to MediaSource, the current version requests multiple parts of the same file (actually due to GitHub not allowing upload of files over 25MB split the 71MB file into four parts). |
Essentially, users in the field that want support for x-codec can roll their own instead of or while waiting for API's to specify and implement algorithms. That is why included the module "codecs" https://github.com/guest271314/AudioWorkletStream/blob/master/codecs.js where any user codec parsing code can be placed. There is no bar from users implementing their own processor, and no guarantee that parsing algorithms implemented by others will achieve what the developer cannot themselves while waiting for an external working group to agree with the concept or request, specify and implement. |
Idea is to have MediaSource as audio player instead of using WebAudio. This is because you can just append and append more buffers to the stream, resembles how the dead Audio Data API worked. However, upon further research, no browser implementaion of MediaSource supported playing raw audio 🤦 w3c/media-source#55
please 🙏 |
I converted original format files to PCM files in Web Worker (by Emscripten), and I tried to stream by MSE.
However, this trial doesn't achieve, because MSE hasn't support for
audio/wav
in almost browsers yet.I hope that it's mentioned in Media Source Extensions Byte Stream Format Registry. Thanks!
The text was updated successfully, but these errors were encountered: