web-demuxer icon indicating copy to clipboard operation
web-demuxer copied to clipboard

introduce interface for data fetching

Open tonybart1337 opened this issue 1 year ago • 2 comments

In order to use this library in our application we would need a way to fetch data from a remote. I like the way you patched it here, which means that it should be relatively easy to do

I would like to propose some kind of interface that a user will be able to pass to the instance of a demuxer, so when we call load or any other function it will use that interface to fetch the data. Caching can also be implemented into the interface as well

tonybart1337 avatar Dec 11 '24 16:12 tonybart1337

Yep, I have the same idea. This has been discussed at https://github.com/bilibili/web-demuxer/issues/11#issuecomment-2421209165. I need some spare time to design how to add the interface. If you have better ideas, you’re welcome to submit a pull request. :)

ForeverSc avatar Dec 12 '24 10:12 ForeverSc

Hi, any update on this? whats the best approach to make web-demuxer read and seek the file from a custom data source (eg datachannel)?

parthibx24 avatar Nov 29 '25 21:11 parthibx24