Video Streaming

Friends,

My current scenario is, i have a server and two clients. The server streams the video to both the clients using RMI.

I am trying to do some modifications, in the sense, i would like the server to stream to one client only, and that client forwards the stream to the other client.

Is there a method where we can implement this ? Hope to hear from you'll soon.

Thank You,

Regards,

Gan.P

[439 byte] By [Gan.Pa] at [2007-11-27 2:05:07]
# 1
So just make client1 also a server, and make client 2 a client of this new server instead of the original one. You can probably reuse most or all of your original server code. It's just a daisy-chaining operation.
ejpa at 2007-7-12 1:50:04 > top of Java-index,Core,Core APIs...
# 2

Dear Friend,

I may need some help further on this. I have two machines, where one is the client and the other is the server. Since i use RMI, i have to start the registry in both the machine before i run the program.

The problem is, if i make the client1 machine a server also, they will be some conflicting issues with the registry. The second issue is, the stream that is being send from the server is not stored in client 1 machine, so i have to push that stream exactly to the other client.

This where i am struggling, i am not sure on how to push the current stream ? I hope you would be able to help.

Thank You,

Regards

Ganesan Periakarruppan

Gan.Pa at 2007-7-12 1:50:04 > top of Java-index,Core,Core APIs...
# 3
RMI isn't a 'push' technology. It's time to ask why you want to do this if you have a working system.
ejpa at 2007-7-12 1:50:04 > top of Java-index,Core,Core APIs...
# 4

My currents config is that the server can send to any number of client. Thats working fine

I am trying to do some modification on how to make the client to send what it is currently viewing to another client in the same subnet. Being new to Java, i am struggling a bit.

Thank You,

Gan.P

Gan.Pa at 2007-7-12 1:50:04 > top of Java-index,Core,Core APIs...
# 5
OK well RMI clients call remote methods in RMI servers. Clients can't call other clients. So one of these clients is going to have to become a server as well. It could implement the same remote interface as your existing server and use the same or a different implementation. Up to you.
ejpa at 2007-7-12 1:50:04 > top of Java-index,Core,Core APIs...
# 6
Many Thanks for your reply.I will update you when i get this up and running.Thank YouGan.P
Gan.Pa at 2007-7-12 1:50:04 > top of Java-index,Core,Core APIs...