| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "services/media_session/public/cpp/features.h" |
| |
| #include "build/build_config.h" |
| |
| namespace media_session { |
| namespace features { |
| |
| // Enables the Media Session service including audio focus tracking. This allows |
| // clients to consume the Media Session Mojo APIs but should not have any |
| // changes to behavior. It is enabled by default on all platforms except Android. |
| const base::Feature kMediaSessionService { |
| "MediaSessionService", |
| #if !defined(OS_ANDROID) |
| base::FEATURE_ENABLED_BY_DEFAULT |
| #else |
| base::FEATURE_DISABLED_BY_DEFAULT |
| #endif |
| }; |
| |
| // Enables Audio Focus enforcement which means that only one media session can |
| // have audio focus at any one time. |
| const base::Feature kAudioFocusEnforcement { |
| "AudioFocusEnforcement", |
| #if defined(OS_CHROMEOS) |
| base::FEATURE_ENABLED_BY_DEFAULT |
| #else |
| base::FEATURE_DISABLED_BY_DEFAULT |
| #endif |
| }; |
| |
| // Enables Audio Focus grouping which means that multiple media sessions can |
| // share audio focus at the same time provided that they have the same group id. |
| const base::Feature kAudioFocusSessionGrouping { |
| "AudioFocusSessionGrouping", |
| #if defined(OS_CHROMEOS) |
| base::FEATURE_ENABLED_BY_DEFAULT |
| #else |
| base::FEATURE_DISABLED_BY_DEFAULT |
| #endif |
| }; |
| |
| } // namespace features |
| } // namespace media_session |