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