Skip to main content
Participant
October 11, 2011
Question

FMS 4.5 and p2p

  • October 11, 2011
  • 1 reply
  • 697 views

Hi, i'm working on simple videoconference app with fms 4.5 for developers. Version without p2p works fine, but now i'm trying to enable p2p feature.

How can i share the nearID of connected client to other users without external tools?

This topic has been closed for replies.

1 reply

Nikhil_Kalyan
Participating Frequently
October 11, 2011

Hi,


Thanks for your interest in P2P.

One way is to use server channel. Enable server channel on the group specifier and connect to FMS on RTMFP. The server will handle the bootstrapping, and there is no need to 'distribute' the peer IDs.


This is one way of doing.

Other ways include LAN Peer Discovery , this can be done if your IP Multicasting is also enabled. Don't go for this right away, try other options and then make ur code robust by adding this fallback later.


The third option, which you may be expecting is, to distribute the peer ID using function calls on FMS. Have one client send its nearId and etc to server functions using NetConnection.call. And the server can 'broadcast' these props to all the new connecting clients.

Hope the information is useful. Thank you !

Participant
October 11, 2011

Thanks, you really helped me.