diff --git a/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm b/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm index 10dd11eb57..0ad2388c0c 100644 --- a/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm +++ b/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm @@ -887,6 +887,10 @@ private: } } + 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(), @@ -965,6 +969,7 @@ private: }, .outgoingAudioBitrateKbit = outgoingAudioBitrateKbit, .videoContentType = _videoContentType, + .videoCodecPreferences = videoCodecPreferences, .initialEnableNoiseSuppression = enableNoiseSuppression })); }