请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

RtpTransceiver里面的senders_ 和receivers_ 数组

请问RtpTransceiver里面的senders_ 和receivers_ 数组,是不是在plan b的情况下才可能是多个元素,而在unified plan的情况下,只可能有一个元素?若不是,请告知原因,谢谢

正在回答 回答被采纳积分+3

插入代码

2回答

提问者 deadeye3397444 2021-12-10 14:07:17

// With Plan B SDP, an RtpTransceiver can have any number of senders and

// receivers which map to a=ssrc lines in the m= section.

// With Unified Plan SDP, an RtpTransceiver will have exactly one sender and one

// receiver which are encapsulated by the m= section.

 备注下,以上是webrtc 官方的注释,看来我的理解应该没错,给有同样疑惑的人。

1 回复 有任何疑惑可以回复我~
  • 头注释是这样的。
    // Thus, the methods that only need to implement
    // public API features and are not used internally can assume exactly one sender
    // and receiver.
    也就是说为了便于理解,再PeerConnection内部使用RtpReceiver,假设只有1个sender和1个receiver,并不是真的只能1个
    回复 有任何疑惑可以回复我~ 2024-06-21 16:37:15
李超 2021-12-10 09:43:36

Unifyplan 也可以有多个呀!它是通过多个m=行来指定多路流的

0 回复 有任何疑惑可以回复我~
  • 提问者 deadeye3397444 #1
    可是我的理解是: 对于unified plan,一个m行只对应一路流,每个m行应该对应一个RtpTransceiver,如果是这样的话每个m行应该只有一个sender和一个receiver,这样理解对吗?
    回复 有任何疑惑可以回复我~ 2021-12-10 10:17:36
  • 李超 #2
    课程里我有讲,好好看看课程
    回复 有任何疑惑可以回复我~ 2021-12-10 11:09:27
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号