Replies: 4 comments
-
You can switch the stream on client-side(client2 or client3). I think it's fine and won't cause problem for client/viewers/players. |
Beta Was this translation helpful? Give feedback.
-
What do you mean switch the stream on the client-side? You mean have the client feed a different video into the same endpoint? That won't work for our case. Imagine a service like Twitch where you have a hundreds of people all streaming to their own channels, and you want to have a channel which rotates between each one every couple of minutes, while still being a single video stream. |
Beta Was this translation helpful? Give feedback.
-
Maybe you can try this:
For example:
Then config some ingesters at SRSB:
In this situation, streamA=>streamC and all players play streamC. When you want to switch:
Now, all players are watching streamB actually, without any interruption. |
Beta Was this translation helpful? Give feedback.
-
As all ingesters are using FFMPEG to pull stream from SRSA to SRSB, if there a huge number of streams, it's maybe need to be replaced, but I think it's fine for hundreds of streams, please do some benchmark. Maybe you can implements your own ingester, to ingest huge streams and with detail business requirements, in this situation, you can add a SRS module to use the classes and objects of SRS to create a complex ingester, such as use the kernel and protocol module, to use RTMP protocol to read and write stream. In a word, it's fine to use FFMEPG as ingester and you maybe need more complex ingester built from SRS module. |
Beta Was this translation helpful? Give feedback.
-
We are writing a client app that streams the contents of the user's desktop to a server on-demand. We want the server to be serving an RTMP stream that rotates between connected streams throughout the day.
For example, in this setup:
We want to be able to interact with the server in the following ways:
Importantly, there should be no interruption or delay when switching the view stream; for people watching the view stream is should appear to be continuous. When we were trying out nginx RTMP server a while back, we found that requesting a live stream change would cause problems for viewers, which we don't want.
Can SRS do this sort of thing?
Beta Was this translation helpful? Give feedback.
All reactions