Skip to content

Commit

Permalink
libwebrtc M121 に対応する
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Jan 22, 2024
1 parent 018c44d commit fb0d54c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sora_client_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// WebRTC
#include <api/create_peerconnection_factory.h>
#include <api/enable_media.h>
#include <api/rtc_event_log/rtc_event_log_factory.h>
#include <api/task_queue/default_task_queue_factory.h>
#include <media/engine/webrtc_media_engine.h>
Expand Down Expand Up @@ -55,7 +56,6 @@ std::shared_ptr<SoraClientContext> 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<webrtc::RtcEventLogFactory>(
dependencies.task_queue_factory.get());
Expand Down Expand Up @@ -115,8 +115,7 @@ std::shared_ptr<SoraClientContext> 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);
Expand Down

0 comments on commit fb0d54c

Please sign in to comment.