采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
请问RtpTransceiver里面的senders_ 和receivers_ 数组,是不是在plan b的情况下才可能是多个元素,而在unified plan的情况下,只可能有一个元素?若不是,请告知原因,谢谢
// 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 官方的注释,看来我的理解应该没错,给有同样疑惑的人。
头注释是这样的。 // 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个
Unifyplan 也可以有多个呀!它是通过多个m=行来指定多路流的
可是我的理解是: 对于unified plan,一个m行只对应一路流,每个m行应该对应一个RtpTransceiver,如果是这样的话每个m行应该只有一个sender和一个receiver,这样理解对吗?
课程里我有讲,好好看看课程
登录后可查看更多问答,登录/注册
音视频领域资深讲师授课,带你领略优秀开源库精妙所在
627 23
591 9
429 8
504 8
947 8
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号