- 在RtpTransportControllerSend的构造函数中
process_thread_(ProcessThread::Create("SendControllerThread")),
module_process_thread_(ProcessThread::Create("ModuleProcessThread")),
- 在这里调用
- 分别调用了RtpTransportControllerSend的构造和Call的构造
Call* Call::Create(const Call::Config& config) {
return new internal::Call(
config, absl::make_unique<RtpTransportControllerSend>(
Clock::GetRealTimeClock(), config.event_log,
config.network_controller_factory, config.bitrate_config));
}
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/bfe94aa3c5bfc76a598148faf3c79ec7.png)
rtc::scoped_refptr<PeerConnectionInterface>
PeerConnectionFactory::CreatePeerConnection(
const PeerConnectionInterface::RTCConfiguration& configuration,
PeerConnectionDependencies dependencies) {
std::unique_ptr<Call> call = worker_thread_->Invoke<std::unique_ptr<Call>>(
RTC_FROM_HERE,
rtc::Bind(&PeerConnectionFactory::CreateCall_w, this, event_log.get()));
}