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 "media/base/media_switches.h" | 5 #include "media/base/media_switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // Allow users to specify a custom buffer size for debugging purpose. | 9 // Allow users to specify a custom buffer size for debugging purpose. |
10 const char kAudioBufferSize[] = "audio-buffer-size"; | 10 const char kAudioBufferSize[] = "audio-buffer-size"; |
(...skipping 22 matching lines...) Expand all Loading... |
33 #endif | 33 #endif |
34 | 34 |
35 #if defined(OS_MACOSX) | 35 #if defined(OS_MACOSX) |
36 // AVFoundation is available in versions 10.7 and onwards, and is to be used | 36 // AVFoundation is available in versions 10.7 and onwards, and is to be used |
37 // http://crbug.com/288562 for both audio and video device monitoring and for | 37 // http://crbug.com/288562 for both audio and video device monitoring and for |
38 // video capture. Being a dynamically loaded NSBundle and library, it hits the | 38 // video capture. Being a dynamically loaded NSBundle and library, it hits the |
39 // Chrome startup time (http://crbug.com/311325 and http://crbug.com/311437); | 39 // Chrome startup time (http://crbug.com/311325 and http://crbug.com/311437); |
40 // for experimentation purposes, in particular library load time issue, the | 40 // for experimentation purposes, in particular library load time issue, the |
41 // usage of this library can be enabled by using this flag. | 41 // usage of this library can be enabled by using this flag. |
42 const char kEnableAVFoundation[] = "enable-avfoundation"; | 42 const char kEnableAVFoundation[] = "enable-avfoundation"; |
| 43 |
43 // QTKit is the media capture API predecessor to AVFoundation, available up and | 44 // QTKit is the media capture API predecessor to AVFoundation, available up and |
44 // until Mac OS X 10.9 (despite being deprecated in this last one). This flag | 45 // until Mac OS X 10.9 (despite being deprecated in this last one). This flag |
45 // is used for troubleshooting and testing, and forces QTKit in builds and | 46 // is used for troubleshooting and testing, and forces QTKit in builds and |
46 // configurations where AVFoundation would be used otherwise. | 47 // configurations where AVFoundation would be used otherwise. |
47 const char kForceQTKit[] = "force-qtkit"; | 48 const char kForceQTKit[] = "force-qtkit"; |
48 #endif | 49 #endif |
49 | 50 |
50 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
51 // Use exclusive mode audio streaming for Windows Vista and higher. | 52 // Use exclusive mode audio streaming for Windows Vista and higher. |
52 // Leads to lower latencies for audio streams which uses the | 53 // Leads to lower latencies for audio streams which uses the |
(...skipping 25 matching lines...) Expand all Loading... |
78 | 79 |
79 // Number of buffers to use for WaveOut. | 80 // Number of buffers to use for WaveOut. |
80 const char kWaveOutBuffers[] = "waveout-buffers"; | 81 const char kWaveOutBuffers[] = "waveout-buffers"; |
81 #endif | 82 #endif |
82 | 83 |
83 #if defined(USE_CRAS) | 84 #if defined(USE_CRAS) |
84 // Use CRAS, the ChromeOS audio server. | 85 // Use CRAS, the ChromeOS audio server. |
85 const char kUseCras[] = "use-cras"; | 86 const char kUseCras[] = "use-cras"; |
86 #endif | 87 #endif |
87 | 88 |
| 89 // Use fake device for Media Stream to replace actual camera and microphone. |
| 90 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; |
| 91 |
88 // Use a raw video file as fake video capture device. | 92 // Use a raw video file as fake video capture device. |
89 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; | 93 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; |
90 | 94 |
91 } // namespace switches | 95 } // namespace switches |
OLD | NEW |