class PeerConnection 实现PeerConnectionInterface
- G:\GERRIT\zhbowt\third_party\webrtc\pc\peer_connection.h、
- 管理 sesson 状态机 ,基于信令。
- 创建和初始化底层对象: PortAllocator BaseChannels
- 拥有和管理 RtpSender/RtpReceiver 和track 对象的 生命周期。
- 跟踪当前和pending了的 local/remote session descriptions. 会话描述。
- 同时,能够
- 解析 SDP
- 基于当前状态生成 offers和answers
- 管理ICE的状态机。
// PeerConnection