Skip to content

Multiple VideoSources in one Server #1794

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

Open
hdralexandru opened this issue Apr 3, 2025 · 4 comments
Open

Multiple VideoSources in one Server #1794

hdralexandru opened this issue Apr 3, 2025 · 4 comments

Comments

@hdralexandru
Copy link

I am working on a video surveillance application where multiple cameras are connected to an Android device acting as a server. My goal is to combine multiple video sources (e.g., USB cameras, built-in cameras) into one RTSP stream so that a remote client can view all of them at the same time.
For simplicity, let's say I receive the images as Bitmaps, so I can use a BitmapSource as a VideoSource.

I found MultiStream but I'm not quite sure if it is what I need

I aim for something like this:

Image

@pedroSG94
Copy link
Owner

Hello,

Normally your example is developed in player side.

Normally, in this case you have 4 streams of only 1 camera to the server and the player reproduce all streams and mix the video into one or use 4 players at the same time.

@hdralexandru
Copy link
Author

I don't quite get your idea, @pedroSG94

So my app can have from 1, up to 5 VideoPlayers that connect to my RTSP server. It does not always stream 4 videos, at the same time. The client can request videos from a different camera, at any time.

@pedroSG94
Copy link
Owner

Basically all streams are 1 camera for stream. So you have a stream per camera.
In player side you have a view (each view contain an instance of a player) per stream.

To reproduce the image shared, you will use 4 views and start a player instance in each one. If you only want one stream, you only need remove views no required or add views if you want more views.

@hdralexandru
Copy link
Author

So after all, on my side, I'm gonna need multiple instances of the RTSP Stream, each with a different VideoSource, correct?
So for instance, if I have 5 cameras, I'm gonna have 5 streams, and each player (on the client side) will connect to a different RtspStream, depending on what what the user wants to see

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