Skip to content

Commit

Permalink
webrtc::ConnectionContext::Create が Environment を引数にとるようになったので対応する
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Jan 16, 2024
1 parent 3066dc2 commit 4f1f72d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sora_peer_connection_factory.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "sora/sora_peer_connection_factory.h"

// WebRTC
#include <api/environment/environment_factory.h>
#include <pc/peer_connection_factory.h>
#include <pc/peer_connection_factory_proxy.h>

Expand All @@ -13,7 +14,8 @@ class PeerConnectionFactoryWithContext : public webrtc::PeerConnectionFactory {
PeerConnectionFactoryWithContext(
webrtc::PeerConnectionFactoryDependencies dependencies)
: PeerConnectionFactoryWithContext(
webrtc::ConnectionContext::Create(&dependencies),
webrtc::ConnectionContext::Create(webrtc::CreateEnvironment(),
&dependencies),
&dependencies) {}
PeerConnectionFactoryWithContext(
rtc::scoped_refptr<webrtc::ConnectionContext> context,
Expand Down

0 comments on commit 4f1f72d

Please sign in to comment.