diff --git a/submodules/TgVoipWebrtc/BUCK b/submodules/TgVoipWebrtc/BUCK index c0b1b540a2..3333a6f854 100644 --- a/submodules/TgVoipWebrtc/BUCK +++ b/submodules/TgVoipWebrtc/BUCK @@ -14,6 +14,8 @@ static_library( "tgcalls/tgcalls/legacy/**", "tgcalls/tgcalls/platform/tdesktop/**", "tgcalls/tgcalls/platform/windows/**", + "tgcalls/tgcalls/platform/darwin/VideoCameraCapturerMac.*", + "tgcalls/tgcalls/platform/darwin/VideoMetalViewMac.*", ]), has_cpp = True, headers = merge_maps([ diff --git a/submodules/TgVoipWebrtc/BUILD b/submodules/TgVoipWebrtc/BUILD index c658a9dd99..a71ebfe7a6 100644 --- a/submodules/TgVoipWebrtc/BUILD +++ b/submodules/TgVoipWebrtc/BUILD @@ -15,6 +15,8 @@ objc_library( "tgcalls/tgcalls/legacy/**", "tgcalls/tgcalls/platform/tdesktop/**", "tgcalls/tgcalls/platform/windows/**", + "tgcalls/tgcalls/platform/darwin/VideoCameraCapturerMac.*", + "tgcalls/tgcalls/platform/darwin/VideoMetalViewMac.*", ]), hdrs = glob([ "PublicHeaders/**/*.h", diff --git a/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm b/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm index d3b387adba..53d28d7bde 100644 --- a/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm +++ b/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm @@ -61,7 +61,7 @@ - (instancetype _Nonnull)init { self = [super init]; if (self != nil) { - _interface = tgcalls::CreateVideoCapture(); + _interface = tgcalls::VideoCaptureInterface::Create(); } return self; } @@ -541,7 +541,7 @@ static void (*InternalVoipLoggingFunction)(NSString *) = NULL; - (void)acceptVideo:(OngoingCallThreadLocalContextVideoCapturer * _Nullable)videoCapturer { if (_tgVoip && _videoCapturer == nil) { _videoCapturer = videoCapturer; - _tgVoip->acceptVideo([_videoCapturer getInterface]); + _tgVoip->requestVideo([_videoCapturer getInterface]); } } diff --git a/submodules/TgVoipWebrtc/tgcalls b/submodules/TgVoipWebrtc/tgcalls index 89f391b1de..83c85d20cc 160000 --- a/submodules/TgVoipWebrtc/tgcalls +++ b/submodules/TgVoipWebrtc/tgcalls @@ -1 +1 @@ -Subproject commit 89f391b1de6fd445b33469a54bf8ea3dca534208 +Subproject commit 83c85d20ccdde154acca4b964317de1e695f95d1