| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "media/base/media_switches.h" | 6 #include "media/base/media_switches.h" |
| 7 | 7 |
| 8 namespace switches { | 8 namespace switches { |
| 9 | 9 |
| 10 // Allow users to specify a custom buffer size for debugging purpose. | 10 // Allow users to specify a custom buffer size for debugging purpose. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 #if defined(USE_CRAS) | 64 #if defined(USE_CRAS) |
| 65 // Use CRAS, the ChromeOS audio server. | 65 // Use CRAS, the ChromeOS audio server. |
| 66 const char kUseCras[] = "use-cras"; | 66 const char kUseCras[] = "use-cras"; |
| 67 #endif | 67 #endif |
| 68 | 68 |
| 69 #if !defined(OS_ANDROID) || defined(ENABLE_PLUGINS) | 69 #if !defined(OS_ANDROID) || defined(ENABLE_PLUGINS) |
| 70 // Use a media session for each tabs in a way that two tabs can't play on top of | 70 // Use a media session for each tabs in a way that two tabs can't play on top of |
| 71 // each other. This is different from the Media Session API as it is enabling a | 71 // each other. This is different from the Media Session API as it is enabling a |
| 72 // default behaviour for the browser. The allowed values are: "" (empty), | 72 // default behaviour for the browser. The allowed values are: "" (empty), |
| 73 // |kEnableDefaultMediaSessionWithFlash|. | 73 // |kEnableDefaultMediaSessionDuckFlash|. |
| 74 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; | 74 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; |
| 75 #endif // !defined(OS_ANDROID) || defined(ENABLE_PLUGINS) | 75 #endif // !defined(OS_ANDROID) || defined(ENABLE_PLUGINS) |
| 76 | 76 |
| 77 #if defined(ENABLE_PLUGINS) | 77 #if defined(ENABLE_PLUGINS) |
| 78 // This value is used as an option for |kEnableDefaultMediaSession|. | 78 // This value is used as an option for |kEnableDefaultMediaSession|. Flash will |
| 79 const char kEnableDefaultMediaSessionWithFlash[] = "with-flash"; | 79 // be ducked when losing audio focus. |
| 80 const char kEnableDefaultMediaSessionDuckFlash[] = "duck-flash"; |
| 80 #endif // defined(ENABLE_PLUGINS) | 81 #endif // defined(ENABLE_PLUGINS) |
| 81 | 82 |
| 82 // Use fake device for Media Stream to replace actual camera and microphone. | 83 // Use fake device for Media Stream to replace actual camera and microphone. |
| 83 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; | 84 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; |
| 84 | 85 |
| 85 // Use an .y4m file to play as the webcam. See the comments in | 86 // Use an .y4m file to play as the webcam. See the comments in |
| 86 // media/capture/video/file_video_capture_device.h for more details. | 87 // media/capture/video/file_video_capture_device.h for more details. |
| 87 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; | 88 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; |
| 88 | 89 |
| 89 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat | 90 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 const base::Feature kExternalClearKeyForTesting{ | 168 const base::Feature kExternalClearKeyForTesting{ |
| 168 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; | 169 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 169 | 170 |
| 170 #if defined(OS_ANDROID) | 171 #if defined(OS_ANDROID) |
| 171 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. | 172 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. |
| 172 const base::Feature kAndroidMediaPlayerRenderer{ | 173 const base::Feature kAndroidMediaPlayerRenderer{ |
| 173 "android-media-player-renderer", base::FEATURE_DISABLED_BY_DEFAULT}; | 174 "android-media-player-renderer", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 174 #endif | 175 #endif |
| 175 | 176 |
| 176 } // namespace media | 177 } // namespace media |
| OLD | NEW |