One sender > multiple recievers demo project

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
Post Reply
ya_vanka
Posts: 65
Joined: Tue Oct 22, 2019 6:24 pm

One sender > multiple recievers demo project

Post 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!
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: One sender > multiple recievers demo project

Post by Sergey Tkachenko »

It's not supported. You need to create separate TRVCamSender for each receiver. Or consider using TRVMediaServer.
ya_vanka
Posts: 65
Joined: Tue Oct 22, 2019 6:24 pm

Re: One sender > multiple recievers demo project

Post by ya_vanka »

Ok, is there any example using TRVMediaServer that can send the same video to multiple recievers?
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: One sender > multiple recievers demo project

Post 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?
ya_vanka
Posts: 65
Joined: Tue Oct 22, 2019 6:24 pm

Re: One sender > multiple recievers demo project

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: One sender > multiple recievers demo project

Post 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.
Post Reply