From ca9356c060d5055040d15a95ea9facc7e6f55f49 Mon Sep 17 00:00:00 2001 From: Fernando Bunn Date: Tue, 13 Aug 2024 17:36:22 +0100 Subject: [PATCH] Change behavior of feature flag turned off (#3097) Task/Issue URL: https://app.asana.com/0/72649045549333/1208037869675970/f **Description**: If the feature flag for autoplay is turned off, we should send autoplay disabled to C-S-S --- DuckDuckGo/YoutubePlayer/DuckPlayer.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DuckDuckGo/YoutubePlayer/DuckPlayer.swift b/DuckDuckGo/YoutubePlayer/DuckPlayer.swift index d1cd1602f3..7b1386d988 100644 --- a/DuckDuckGo/YoutubePlayer/DuckPlayer.swift +++ b/DuckDuckGo/YoutubePlayer/DuckPlayer.swift @@ -248,10 +248,10 @@ final class DuckPlayer { var isAutoplayEnabled = DuckPlayerPreferences.shared.duckPlayerAutoplay - /// If the feature flag is disabled, we want to turn autoPlay to true since this was the default + /// If the feature flag is disabled, we want to turn autoPlay to false /// https://app.asana.com/0/1204167627774280/1207906550241281/f if !isAutoplayFeatureEnabled { - isAutoplayEnabled = true + isAutoplayEnabled = false } // Disable WebView PiP if if the subFeature is off