Update media_switches.cc
This commit is contained in:
parent
c9087a2cc9
commit
9970843b71
1 changed files with 5 additions and 5 deletions
|
@ -526,6 +526,9 @@ const base::Feature kUseR16Texture{"use-r16-texture",
|
|||
// autoplay policy.
|
||||
const base::Feature kUnifiedAutoplay{"UnifiedAutoplay",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT};
|
||||
|
||||
const base::Feature kNoAutoplay{"NoAutoplay",
|
||||
base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
// Enable vaapi video decoding on linux. This is already enabled by default on
|
||||
|
@ -962,15 +965,12 @@ std::string GetEffectiveAutoplayPolicy(const base::CommandLine& command_line) {
|
|||
if (base::FeatureList::IsEnabled(media::kUnifiedAutoplay))
|
||||
return switches::autoplay::kDocumentUserActivationRequiredPolicy;
|
||||
|
||||
if (base::FeatureList::IsEnabled(media::kUserGestureRequiredPolicy))
|
||||
return switches::autoplay::kUserGestureRequiredPolicy;
|
||||
if (base::FeatureList::IsEnabled(media::kNoAutoplay))
|
||||
return switches::autoplay::kUserGestureRequiredPolicy;
|
||||
|
||||
// The default value is platform dependent.
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
return switches::autoplay::kUserGestureRequiredPolicy;
|
||||
#else
|
||||
return switches::autoplay::kNoUserGestureRequiredPolicy;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Enables Media Engagement Index recording. This data will be used to determine
|
||||
|
|
Loading…
Reference in a new issue