mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-14 06:10:40 +01:00
Make simulcast screenshare default-on
Bug: chromium:690537 Change-Id: I7380f5e7b3faa20ba60bebee8b8b4d74db885faf Reviewed-on: https://webrtc-review.googlesource.com/c/112381 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25840}
This commit is contained in:
parent
c4862f452d
commit
72e52ee619
3 changed files with 4 additions and 11 deletions
|
@ -397,7 +397,7 @@ std::vector<webrtc::VideoStream> GetScreenshareLayers(
|
|||
}
|
||||
|
||||
bool ScreenshareSimulcastFieldTrialEnabled() {
|
||||
return webrtc::field_trial::IsEnabled(kSimulcastScreenshareFieldTrialName);
|
||||
return !webrtc::field_trial::IsDisabled(kSimulcastScreenshareFieldTrialName);
|
||||
}
|
||||
|
||||
} // namespace cricket
|
||||
|
|
|
@ -222,6 +222,7 @@ TEST(SimulcastTest, GetConfigWithNormalizedResolutionDivisibleBy8) {
|
|||
}
|
||||
|
||||
TEST(SimulcastTest, GetConfigForScreenshare) {
|
||||
test::ScopedFieldTrials field_trials("WebRTC-SimulcastScreenshare/Disabled/");
|
||||
const size_t kMaxLayers = 3;
|
||||
std::vector<VideoStream> streams = cricket::GetSimulcastConfig(
|
||||
kMaxLayers, 1400, 800, kMaxBitrateBps, kBitratePriority, kQpMax, kMaxFps,
|
||||
|
@ -241,8 +242,6 @@ TEST(SimulcastTest, GetConfigForScreenshare) {
|
|||
}
|
||||
|
||||
TEST(SimulcastTest, GetConfigForScreenshareSimulcast) {
|
||||
test::ScopedFieldTrials field_trials("WebRTC-SimulcastScreenshare/Enabled/");
|
||||
|
||||
const size_t kMaxLayers = 3;
|
||||
std::vector<VideoStream> streams = cricket::GetSimulcastConfig(
|
||||
kMaxLayers, 1400, 800, kMaxBitrateBps, kBitratePriority, kQpMax, kMaxFps,
|
||||
|
@ -263,8 +262,6 @@ TEST(SimulcastTest, GetConfigForScreenshareSimulcast) {
|
|||
}
|
||||
|
||||
TEST(SimulcastTest, GetConfigForScreenshareSimulcastWithLimitedMaxLayers) {
|
||||
test::ScopedFieldTrials field_trials("WebRTC-SimulcastScreenshare/Enabled/");
|
||||
|
||||
const size_t kMaxLayers = 1;
|
||||
std::vector<VideoStream> streams = cricket::GetSimulcastConfig(
|
||||
kMaxLayers, 1400, 800, kMaxBitrateBps, kBitratePriority, kQpMax, kMaxFps,
|
||||
|
@ -274,8 +271,6 @@ TEST(SimulcastTest, GetConfigForScreenshareSimulcastWithLimitedMaxLayers) {
|
|||
}
|
||||
|
||||
TEST(SimulcastTest, SimulcastScreenshareMaxBitrateAdjustedForResolution) {
|
||||
test::ScopedFieldTrials field_trials("WebRTC-SimulcastScreenshare/Enabled/");
|
||||
|
||||
constexpr int kScreenshareHighStreamMinBitrateBps = 600000;
|
||||
constexpr int kScreenshareHighStreamMaxBitrateBps = 1250000;
|
||||
constexpr int kMaxBitrate960_540 = 900000;
|
||||
|
|
|
@ -6976,21 +6976,19 @@ TEST_F(WebRtcVideoChannelSimulcastTest, SetSendCodecsForScreenshare) {
|
|||
|
||||
TEST_F(WebRtcVideoChannelSimulcastTest,
|
||||
SetSendCodecsForConferenceModeScreenshare) {
|
||||
webrtc::test::ScopedFieldTrials field_trials(
|
||||
"WebRTC-SimulcastScreenshare/Disabled/");
|
||||
VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 1, true,
|
||||
true);
|
||||
}
|
||||
|
||||
TEST_F(WebRtcVideoChannelSimulcastTest, SetSendCodecsForSimulcastScreenshare) {
|
||||
webrtc::test::ScopedFieldTrials override_field_trials_(
|
||||
"WebRTC-SimulcastScreenshare/Enabled/");
|
||||
VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 2, true,
|
||||
true);
|
||||
}
|
||||
|
||||
TEST_F(WebRtcVideoChannelSimulcastTest,
|
||||
NoSimulcastScreenshareWithoutConference) {
|
||||
webrtc::test::ScopedFieldTrials override_field_trials_(
|
||||
"WebRTC-SimulcastScreenshare/Enabled/");
|
||||
VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 1, true,
|
||||
false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue