Loading multiple MP4 #1252
Answered
by
sipsorcery
HighOnLemonz
asked this question in
Q&A
|
Hello, Is there a way to load multiple MP4s and switch the live feed between them on demand? Do I have to redo the entire example from MP4 example with the new MP4 while the previous is already running? Thank you |
Answered by
sipsorcery
Dec 9, 2024
Replies: 1 comment 3 replies
|
You could create multiple 'FFmpegFileSource' instances and then switch between them by setting and removing the peer connection event handler It's not the most efficeint approach as you'll have the overhead of multiple sources in memory. Also all the video sources will need to be set to the same sending format. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have a look at the Start and Stop methods on the FFmpegFileSource.