开发者

Why NetGroup.MulticastStream.UnpublishNotify fires just after NetGroup.MulticastStream.PublishNotify

开发者 https://www.devze.com 2023-03-16 07:27 出处:网络
I am working on Cirrus I want to make audio chat. I publish stream on one side but its NetGroup.MulticastStream.PublishNotify event doesn\'t fires at first time....When I publish it twice or thrice it

I am working on Cirrus I want to make audio chat. I publish stream on one side but its NetGroup.MulticastStream.PublishNotify event doesn't fires at first time....When I publish it twice or thrice it fires. I play the开发者_运维知识库 stream on the other side using published stream name but just after play event firing NetGroup.MulticastStream.UnpublishNotify fires and I can't listen the voice.


Not sure, but I guess NetGroup.Multicast Stream.PublishNotify fires only when NetStream contains information (for example if you connected microphone but not speaking, netStream will be open but don't contain information in stream). For example try send some data like this _myStream.send("onFunction","sata"); after _myStream.publish("name"); and NetGroup.Multicast Stream.PublishNotify must fires in a first time.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号