Page 1 of 1
One sender > multiple recievers demo project
Posted: Sat Jul 25, 2020 4:00 pm
by ya_vanka
Is there any example or demo project on how to build an application capable to send the same video to multiple recievers?
Similar to SendAndReceive\TwoApps, but not limited to a single reciever.
Thanks in advance!
Re: One sender > multiple recievers demo project
Posted: Sat Jul 25, 2020 7:11 pm
by Sergey Tkachenko
It's not supported. You need to create separate TRVCamSender for each receiver. Or consider using TRVMediaServer.
Re: One sender > multiple recievers demo project
Posted: Sun Jul 26, 2020 8:50 am
by ya_vanka
Ok, is there any example using TRVMediaServer that can send the same video to multiple recievers?
Re: One sender > multiple recievers demo project
Posted: Sun Jul 26, 2020 10:55 am
by Sergey Tkachenko
Normally, TRVMediaServer is placed in a separate application.
You can find demos in Demos\Delphi\ClientServer\VideoChats\
For example, see Chat and Server application. One chat send video to a server, and several other chat clients can receive it.
You can place TRVMediaServer and TRVCamSender in the same application, but they still should be connected via the network.
However, it looks like an overkill for your task.
Why cannot you simply use several TRVCamSender components connected to the same TRVCamera?
Re: One sender > multiple recievers demo project
Posted: Sun Jul 26, 2020 11:39 am
by ya_vanka
I don't know the number of clients that will need to recieve video from sender.
Theoretically I can create new TRVCamSender instance each time a client is connected to the server.
Do you think this way is more optimal than using TRVMediaServer?
Why do you consider placing TRVMediaServer and TRVCamSender in the same application like an overkill?
Re: One sender > multiple recievers demo project
Posted: Sun Jul 26, 2020 3:58 pm
by Sergey Tkachenko
I think that using TRVMediaSender is not optimal because TRVCamSender connects to it using tcp connection, while TRVCamera transfers images to TRVCamSender directly.
However, maybe this is a reasonable solution if you have many receivers.