Skip to content

Commit

Permalink
WIP: ビルドだけ通した
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Jan 22, 2024
1 parent fb0d54c commit 6dbcdf1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sora_client_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
// WebRTC
#include <api/create_peerconnection_factory.h>
#include <api/enable_media.h>
#include <api/environment/environment_factory.h>
#include <api/rtc_event_log/rtc_event_log_factory.h>
#include <api/task_queue/default_task_queue_factory.h>
#include <call/call_config.h>
#include <media/engine/webrtc_media_engine.h>
#include <modules/audio_device/include/audio_device.h>
#include <modules/audio_device/include/audio_device_factory.h>
#include <modules/audio_processing/include/audio_processing.h>
#include <modules/video_capture/video_capture.h>
#include <modules/video_capture/video_capture_factory.h>
#include <pc/media_factory.h>
#include <pc/video_track_source_proxy.h>
#include <rtc_base/logging.h>
#include <rtc_base/ssl_adapter.h>
Expand Down Expand Up @@ -117,6 +120,14 @@ std::shared_ptr<SoraClientContext> SoraClientContext::Create(

webrtc::EnableMedia(dependencies);

// TODO: CallConfig のコンストラクタの第2引数の扱いについて理解する
auto webrtc_env = webrtc::CreateEnvironment();
webrtc::CallConfig call_config(webrtc_env);
dependencies.media_factory->CreateCall(call_config);

// TODO: Environment に task_queue_factory を持たせる必要があるかもしれない
dependencies.media_factory->CreateMediaEngine(webrtc_env, dependencies);

if (c->config_.configure_dependencies) {
c->config_.configure_dependencies(dependencies);
}
Expand Down

0 comments on commit 6dbcdf1

Please sign in to comment.