Closed LucasDang closed 3 years ago
Found the reason, I send response to server is too early.
I also met the same problem. How did you solve it?
I also met the same problem. How did you solve it?
When you receive newConsumer
request, you need create local consumer first, and then send response to server.
目前流程就是按照这个逻辑的,1对1通话没问题,但是如果3人或者以上还是会有这个问题。
目前流程就是按照这个逻辑的,1对1通话没问题,但是如果3人或者以上还是会有这个问题。
你确定你是在一个队列中同步操作的么?你得创建完成consumer
之后在发送response
给服务端。
没有使用队列,不过从打印信息来看,是创建完成后,通过resumeConsumer恢复音视频的。你能分享你的代码片段吗,这个问题困扰我好久了,非常感谢!
没有使用队列,不过从打印信息来看,是创建完成后,通过resumeConsumer恢复音视频的。你能分享你的代码片段吗,这个问题困扰我好久了,非常感谢!
不是手动的resumeConsumer
,你在接收到websocket
的request
,是否返回了response
?
我这里接收到newConsumer
,通过transport
创建完成之后,使用闭包回调去发送response
的信令
没有返回response,这个response信令内容是啥?有格式要求吗?
没有返回response,这个response信令内容是啥?有格式要求吗?
每个人 写法 不一样,我这里是通过回给服务端response
,服务端对此consumer
进行resume
。
这个你可能需要和你服务端联调一下。
https://mediasoup.discourse.group/t/create-server-side-consumers-with-paused-true/244
要做的就是接收到第二个audioConsumer
的时候必须要在本地创建完成相应的consumer
之后,才能开启音频数据的传输。
好的,非常感谢
またお邪魔して申し訳ありません
Encountered a very strange problem,
When I receive consumers and handle them in a serial Dispatch Queue, the following sequence will crash with message
Failed to set local answer sdp: Failed to process the bundled m= section
. 1.peerA.audio——peerA.video——peerB.audio 2.peerA.audio——peerA.video——peerB.audio——peerB.videoBut following sequence is OK. 3.peerA.audio——peerB.audio 4.peerA.audio——peerA.video——peerB.video——peerB.audio
Can you tell me where the problem is?
Thanks anyway!