Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin 2021-04-30 22:47:23 +04:00
commit 66904581d6

View File

@ -908,6 +908,11 @@ private:
videoCodecPreferences.push_back(tgcalls::VideoCodecName::VP8); videoCodecPreferences.push_back(tgcalls::VideoCodecName::VP8);
videoCodecPreferences.push_back(tgcalls::VideoCodecName::VP9); videoCodecPreferences.push_back(tgcalls::VideoCodecName::VP9);
int minOutgoingVideoBitrateKbit = 100;
#if DEBUG
//minOutgoingVideoBitrateKbit = 900;
#endif
__weak GroupCallThreadLocalContext *weakSelf = self; __weak GroupCallThreadLocalContext *weakSelf = self;
_instance.reset(new tgcalls::GroupInstanceCustomImpl((tgcalls::GroupInstanceDescriptor){ _instance.reset(new tgcalls::GroupInstanceCustomImpl((tgcalls::GroupInstanceDescriptor){
.threads = tgcalls::StaticThreads::getThreads(), .threads = tgcalls::StaticThreads::getThreads(),
@ -932,7 +937,6 @@ private:
} }
audioLevelsUpdated(result); audioLevelsUpdated(result);
}, },
.minOutgoingVideoBitrateKbit = 1024,
.initialInputDeviceId = inputDeviceId.UTF8String, .initialInputDeviceId = inputDeviceId.UTF8String,
.initialOutputDeviceId = outputDeviceId.UTF8String, .initialOutputDeviceId = outputDeviceId.UTF8String,
.videoCapture = [_videoCapturer getInterface], .videoCapture = [_videoCapturer getInterface],
@ -1013,7 +1017,8 @@ private:
}); });
return std::make_shared<RequestMediaChannelDescriptionTaskImpl>(task); return std::make_shared<RequestMediaChannelDescriptionTaskImpl>(task);
} },
.minOutgoingVideoBitrateKbit = minOutgoingVideoBitrateKbit
})); }));
} }
return self; return self;