Open brabebhin opened 6 months ago
Interesting solution. I had a prototype implementation of this years back. I used a different approach: I just created additional "child" instances of the FFmpegMediaSource. In the main instance's OnSampleRequested, if the requested stream was not found in the current source, I'd search any child sources for the stream and call their SampleRequested method. The upside was that the required amount of changes was pretty small (ofc, that does not neccessarily mean that it is the better approach).
Hmm interesting, I haven't thought of that, but it makes sense. Yes it should be a smaller changeset, and that should also make it easier to handle.
Hello @lukasf
I've been playing around with a new feature: add multiple input files to the FFmpegMediaSource. This PR showcases a working prototype.
Some notes and open questions: