Skip to content
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

Push interface for frame readers #213

Open
rhgndf opened this issue Jun 15, 2023 · 1 comment
Open

Push interface for frame readers #213

rhgndf opened this issue Jun 15, 2023 · 1 comment

Comments

@rhgndf
Copy link

rhgndf commented Jun 15, 2023

Is there a way for frame readers or demuxers to accept data using a call like .decode(data) which returns the next packet? Or even better do a probe and instantiate the correct decoder from there. Spawning a new thread is not an option due to wasm environment.

@rhgndf rhgndf changed the title Push interface for demuxers Push interface for frame readers Jun 16, 2023
@pdeljanov
Copy link
Owner

Hi @rhgndf,

The FormatReaders all assume blocking IO currently so it's not possible to push data into them. Likewise, probing also assumes blocking IO. So without a way to implement Read on your data source, those parts of Symphonia will likely not be possible for you to use.

You can, however, use the decoders independently of all this since they consume Packets. So, if there are other libraries which can do the demuxing for you, then Symphonia can do the decoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants