0
我正在爲我的聊天室做P2P。我可以使用Cirrus並將音頻和視頻從1位用戶轉移到另一位。這是1對1轉移。Flex來自同一個發佈的NetStream的P2P多個接收器
但是,現在情況有點不同。我需要做一對多的轉移。
User1發佈NetStream,其中包含自己的實時網絡攝像頭視頻。 User2,User3,...想要查看User1的網絡攝像機。
User1_Stream = new NetStream(...);
User1_Stream.publish("user1-stream");
//only 1 of these users below can see the webcam of User1
User2_Stream = new NetStream(...,User1_Connection.nearID);
User2_Stream.play("user1-stream");
User3_Stream = new NetStream(...,User1_Connection.nearID);
User3_Stream.play("user1-stream");
User4_Stream = new NetStream(...,User1_Connection.nearID);
User5_Stream.play("user1-stream");
...
如何使所有用戶都能夠看到User1的攝像頭?