diff --git a/src/sora_client_context.cpp b/src/sora_client_context.cpp index e920134e..5a826d45 100644 --- a/src/sora_client_context.cpp +++ b/src/sora_client_context.cpp @@ -2,6 +2,7 @@ // WebRTC #include +#include #include #include #include @@ -55,7 +56,6 @@ std::shared_ptr SoraClientContext::Create( dependencies.worker_thread = c->worker_thread_.get(); dependencies.signaling_thread = c->signaling_thread_.get(); dependencies.task_queue_factory = webrtc::CreateDefaultTaskQueueFactory(); - dependencies.call_factory = webrtc::CreateCallFactory(); dependencies.event_log_factory = absl::make_unique( dependencies.task_queue_factory.get()); @@ -115,8 +115,7 @@ std::shared_ptr SoraClientContext::Create( c->config_.configure_media_dependencies(dependencies, media_dependencies); } - dependencies.media_engine = - cricket::CreateMediaEngine(std::move(media_dependencies)); + webrtc::EnableMedia(dependencies); if (c->config_.configure_dependencies) { c->config_.configure_dependencies(dependencies);