From 4e43bdb3a3b40ee549cd636a529c5c90e9155628 Mon Sep 17 00:00:00 2001 From: enm10k Date: Tue, 16 Jan 2024 23:15:37 +0900 Subject: [PATCH] WIP --- src/sora_client_context.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/sora_client_context.cpp b/src/sora_client_context.cpp index e920134e..2e4ca242 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,8 @@ 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(); + // TODO(enm10k): call_factory の移行先を調べる + // dependencies.call_factory = webrtc::CreateCallFactory(); dependencies.event_log_factory = absl::make_unique( dependencies.task_queue_factory.get()); @@ -115,8 +117,10 @@ std::shared_ptr SoraClientContext::Create( c->config_.configure_media_dependencies(dependencies, media_dependencies); } - dependencies.media_engine = - cricket::CreateMediaEngine(std::move(media_dependencies)); + // TODO(enm10k): media_factory の移行方法が正しいか確認する + // dependencies.media_factory = + // cricket::CreateMediaEngine(std::move(media_dependencies)); + webrtc::EnableMedia(dependencies); if (c->config_.configure_dependencies) { c->config_.configure_dependencies(dependencies);