Expand my Community achievements bar.

SOLVED

Way to turn off Peer-to-Peer?

Avatar

Level 2

We have been using your SDK for a while, primarily for audio conferencing of about 9 people in a room.  We are using the rtmp/Speex options, but recently we have noticed some issues when we have close to 9 people in a room.  It seems some people can hear 3 or 4 others, but not everyone.  Each person hears different people, so we get weird issues where 1 person is talking to the group but only about half the people can hear them.  Not everyone joins the room at the same time, so my fear is that in the beginning we are hitting the criteria where it is P2P style connections between the participants, but as the room grows, people aren't being switched over appropriately to the server style connections.

Finally, my question:  Is there a way to disable the P2P option and force the server-connection option for a room connection?

Thanks,

Steve

1 Accepted Solution

Avatar

Correct answer by
Employee

Just to be clear, if you have player 10 and add "authentication.protol = "rtmfp", you get an rtmfp connection that gives you better A/V streaming AND p2p if the conditions allow (3 participants or less, etc.).

If you don't add "authentication.protocol" you get an rtmps connection (regular FMS connection).

Currently we don't have an option that gives you rtmfp but not p2p.

Note that I would try to not to use "authentication.protocol = "rtmps", but as I said I would just don't set the protocol property. The "protocol" property is a temporary hack to allow you to select rtmfp if you want to try the new features.

View solution in original post

7 Replies

Avatar

Former Community Member

Hi Steve,

Which build # of the SDK are you using? We had a bug similar to this a few months back which got fixed.

nigel

Avatar

Former Community Member

Hi Steve,

The latest drop is 0.92.  We'd recommend grabbing the latest by logging in to the developer portal:

http://afcs.acrobat.com/

...and clicking on the huge, purple button in the upper-right, "Download the SDK," to get the latest.

-Fang

Avatar

Level 2

Thanks Fang, I will do that.  But I would still like to know if there is a way to turn off the P2P mode and always force the server mode?

Thanks,

Steve

Avatar

Former Community Member

Hi,

Peer to Peer  works only with rtmfp protocol. So, if you make your authentication.protocol = "rtmps"  , it will automatically shut off peer to peer. But yes , we don't have a seperate parameter on client side for this. We will take a look into it for future.

Thanks

Hironmay Basu

Avatar

Correct answer by
Employee

Just to be clear, if you have player 10 and add "authentication.protol = "rtmfp", you get an rtmfp connection that gives you better A/V streaming AND p2p if the conditions allow (3 participants or less, etc.).

If you don't add "authentication.protocol" you get an rtmps connection (regular FMS connection).

Currently we don't have an option that gives you rtmfp but not p2p.

Note that I would try to not to use "authentication.protocol = "rtmps", but as I said I would just don't set the protocol property. The "protocol" property is a temporary hack to allow you to select rtmfp if you want to try the new features.

Avatar

Level 2

OK, thanks Raff.  I will use the 0.92 version of the SDK and hope that the P2P switchover bug has been fixed in that version (it was still occurring in 0.91).  If I understand you correctly, there is no way in the client SDK to get the advantage of the UDP protocol and not the P2P style of communication.  Our game almost always starts with a small number of users (3 or less) and then escalates up to 9 in a room.

I will report back if we continue to have this issue in 0.92.

Thanks,

Steve