Chromium Code Reviews| 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) | 69 #if !defined(OS_ANDROID) |
| 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. | 72 // default behaviour for the browser. |
| 73 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; | 73 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; |
|
xhwang
2016/10/18 17:26:59
Please add more comments about what the allowed va
Zhiqiang Zhang (Slow)
2016/10/18 18:51:54
Done.
| |
| 74 #endif | 74 |
| 75 #if defined(ENABLE_PLUGINS) | |
| 76 const char kEnableDefaultMediaSessionWithFlash[] = "with-flash"; | |
|
Alexei Svitkine (slow)
2016/10/18 16:51:38
Add a comment mentioning that this is the value fo
Zhiqiang Zhang (Slow)
2016/10/18 18:51:54
Done.
| |
| 77 #endif // defined(ENABLE_PLUGINS) | |
| 78 | |
| 79 #endif // !defined(OS_ANDROID) | |
| 75 | 80 |
| 76 // Use fake device for Media Stream to replace actual camera and microphone. | 81 // Use fake device for Media Stream to replace actual camera and microphone. |
| 77 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; | 82 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; |
| 78 | 83 |
| 79 // Use an .y4m file to play as the webcam. See the comments in | 84 // Use an .y4m file to play as the webcam. See the comments in |
| 80 // media/capture/video/file_video_capture_device.h for more details. | 85 // media/capture/video/file_video_capture_device.h for more details. |
| 81 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; | 86 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; |
| 82 | 87 |
| 83 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat | 88 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat |
| 84 // the bits as if they came from the microphone, which means you should disable | 89 // the bits as if they came from the microphone, which means you should disable |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 } // namespace switches | 126 } // namespace switches |
| 122 | 127 |
| 123 namespace media { | 128 namespace media { |
| 124 | 129 |
| 125 #if defined(OS_WIN) | 130 #if defined(OS_WIN) |
| 126 // Enables H264 HW encode acceleration using Media Foundation for Windows. | 131 // Enables H264 HW encode acceleration using Media Foundation for Windows. |
| 127 const base::Feature kMediaFoundationH264Encoding{ | 132 const base::Feature kMediaFoundationH264Encoding{ |
| 128 "MediaFoundationH264Encoding", base::FEATURE_DISABLED_BY_DEFAULT}; | 133 "MediaFoundationH264Encoding", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 129 #endif // defined(OS_WIN) | 134 #endif // defined(OS_WIN) |
| 130 | 135 |
| 131 #if defined(ENABLE_PLUGINS) | |
| 132 // Let flash join and be controlled by media session, only valid when | |
| 133 // |kEnableDefaultMediaSession| is on. | |
| 134 const base::Feature kFlashJoinsMediaSession{"FlashJoinsMediaSession", | |
| 135 base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 136 #endif // defined(ENABLE_PLUGINS) | |
| 137 | |
| 138 // Use new audio rendering mixer. | 136 // Use new audio rendering mixer. |
| 139 const base::Feature kNewAudioRenderingMixingStrategy{ | 137 const base::Feature kNewAudioRenderingMixingStrategy{ |
| 140 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; | 138 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 141 | 139 |
| 142 // Only used for disabling overlay fullscreen (aka SurfaceView) in Clank. | 140 // Only used for disabling overlay fullscreen (aka SurfaceView) in Clank. |
| 143 const base::Feature kOverlayFullscreenVideo{"overlay-fullscreen-video", | 141 const base::Feature kOverlayFullscreenVideo{"overlay-fullscreen-video", |
| 144 base::FEATURE_ENABLED_BY_DEFAULT}; | 142 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 145 | 143 |
| 146 // Let videos be resumed via remote controls (for example, the notification) | 144 // Let videos be resumed via remote controls (for example, the notification) |
| 147 // when in background. | 145 // when in background. |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 168 const base::Feature kExternalClearKeyForTesting{ | 166 const base::Feature kExternalClearKeyForTesting{ |
| 169 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; | 167 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 170 | 168 |
| 171 #if defined(OS_ANDROID) | 169 #if defined(OS_ANDROID) |
| 172 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. | 170 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. |
| 173 const base::Feature kAndroidMediaPlayerRenderer{ | 171 const base::Feature kAndroidMediaPlayerRenderer{ |
| 174 "android-media-player-renderer", base::FEATURE_DISABLED_BY_DEFAULT}; | 172 "android-media-player-renderer", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 175 #endif | 173 #endif |
| 176 | 174 |
| 177 } // namespace media | 175 } // namespace media |
| OLD | NEW |