RtpTransceiver里面的senders_ 和receivers_ 数组

来源:6-4 如何生成SDP

deadeye3397444

2021-12-09

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

写回答

2回答

deadeye3397444

提问者

2021-12-10

// 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
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
共1条回复

李超

2021-12-10

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

0
2
李超
课程里我有讲,好好看看课程
2021-12-10
共2条回复

WebRTC源码级深度解析,进阶大厂高级音视频开发者

音视频领域资深讲师授课,带你领略优秀开源库精妙所在

652 学习 · 256 问题

查看课程