| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Number of buffers to use for WaveOut. | 91 // Number of buffers to use for WaveOut. |
| 92 const char kWaveOutBuffers[] = "waveout-buffers"; | 92 const char kWaveOutBuffers[] = "waveout-buffers"; |
| 93 #endif | 93 #endif |
| 94 | 94 |
| 95 #if defined(USE_CRAS) | 95 #if defined(USE_CRAS) |
| 96 // Use CRAS, the ChromeOS audio server. | 96 // Use CRAS, the ChromeOS audio server. |
| 97 const char kUseCras[] = "use-cras"; | 97 const char kUseCras[] = "use-cras"; |
| 98 #endif | 98 #endif |
| 99 | 99 |
| 100 #if !defined(OS_ANDROID) |
| 101 // Use a media session for each tabs in a way that two tabs can't play on top of |
| 102 // each other. This is different from the Media Session API as it is enabling a |
| 103 // default behaviour for the browser. |
| 104 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; |
| 105 #endif |
| 106 |
| 100 // Use fake device for Media Stream to replace actual camera and microphone. | 107 // Use fake device for Media Stream to replace actual camera and microphone. |
| 101 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; | 108 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; |
| 102 | 109 |
| 103 // Use an .y4m file to play as the webcam. See the comments in | 110 // Use an .y4m file to play as the webcam. See the comments in |
| 104 // media/capture/video/file_video_capture_device.h for more details. | 111 // media/capture/video/file_video_capture_device.h for more details. |
| 105 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; | 112 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; |
| 106 | 113 |
| 107 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat | 114 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat |
| 108 // the bits as if they came from the microphone, which means you should disable | 115 // the bits as if they came from the microphone, which means you should disable |
| 109 // audio processing (lest your audio file will play back distorted). The input | 116 // audio processing (lest your audio file will play back distorted). The input |
| (...skipping 21 matching lines...) Expand all Loading... |
| 131 | 138 |
| 132 } // namespace switches | 139 } // namespace switches |
| 133 | 140 |
| 134 namespace media { | 141 namespace media { |
| 135 | 142 |
| 136 // Use shared block-based buffering for media. | 143 // Use shared block-based buffering for media. |
| 137 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 144 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
| 138 base::FEATURE_DISABLED_BY_DEFAULT}; | 145 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 139 | 146 |
| 140 } // namespace media | 147 } // namespace media |
| OLD | NEW |