From eb89b4f7e30e44c13930296efc0ed3241ca2aa4b Mon Sep 17 00:00:00 2001 From: overtake Date: Tue, 27 Apr 2021 18:23:40 +0300 Subject: [PATCH] videocontenttype [skip ci] --- .../TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm b/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm index 6694d36309..e4d6eabce1 100644 --- a/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm +++ b/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm @@ -871,12 +871,19 @@ private: switch (videoContentType) { case OngoingGroupCallVideoContentTypeGeneric: _videoContentType = tgcalls::VideoContentType::Generic; + break; case OngoingGroupCallVideoContentTypeScreencast: _videoContentType = tgcalls::VideoContentType::Screencast; + break; case OngoingGroupCallVideoContentTypeNone: _videoContentType = tgcalls::VideoContentType::None; + break; } + std::vector videoCodecPreferences; + videoCodecPreferences.push_back(tgcalls::VideoCodecName::VP8); + videoCodecPreferences.push_back(tgcalls::VideoCodecName::VP9); + __weak GroupCallThreadLocalContext *weakSelf = self; _instance.reset(new tgcalls::GroupInstanceCustomImpl((tgcalls::GroupInstanceDescriptor){ .threads = tgcalls::StaticThreads::getThreads(), @@ -955,6 +962,7 @@ private: }, .outgoingAudioBitrateKbit = outgoingAudioBitrateKbit, .videoContentType = _videoContentType, + .videoCodecPreferences = videoCodecPreferences, .initialEnableNoiseSuppression = enableNoiseSuppression })); }