WofWca / jumpcutter

⏩ Fast-forwards long pauses between sentences — watch lectures ~1.5x faster (browser extension)
https://chrome.google.com/webstore/detail/jump-cutter/lmppdpldfpfdlipofacekcfleacbbncp
GNU Affero General Public License v3.0
356 stars 13 forks source link

rewrite with WebCodecs API (low-level access to frames and audio samples) #167

Open WofWca opened 8 months ago

WofWca commented 8 months ago

Just found out about it, damn

https://w3c.github.io/webcodecs/#audiodecoder-interface https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API

I haven't checked how it all works, just read the description. Is it the proper way to write this extension?

WofWca commented 4 months ago

I checked this out a bit. What I think we want is AudioData.copyTo

But I'm just not sure when this can be useful for us, except for potential performance gain. If you think about HTMLVideoElement, all it has is src and srcObject, and we can already handle all the cases except for MediaSourceHandle for the cloning algorithm.