| 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 #include "ppapi/features/features.h" | 7 #include "ppapi/features/features.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; | 93 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; |
| 94 | 94 |
| 95 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat | 95 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat |
| 96 // the bits as if they came from the microphone, which means you should disable | 96 // the bits as if they came from the microphone, which means you should disable |
| 97 // audio processing (lest your audio file will play back distorted). The input | 97 // audio processing (lest your audio file will play back distorted). The input |
| 98 // file is converted to suit Chrome's audio buses if necessary, so most sane | 98 // file is converted to suit Chrome's audio buses if necessary, so most sane |
| 99 // .wav files should work. You can pass either <path> to play the file looping | 99 // .wav files should work. You can pass either <path> to play the file looping |
| 100 // or <path>%noloop to stop after playing the file to completion. | 100 // or <path>%noloop to stop after playing the file to completion. |
| 101 const char kUseFileForFakeAudioCapture[] = "use-file-for-fake-audio-capture"; | 101 const char kUseFileForFakeAudioCapture[] = "use-file-for-fake-audio-capture"; |
| 102 | 102 |
| 103 // Use fake device for accelerated decoding of JPEG. This allows, for example, |
| 104 // testing of the communication to the GPU service without requiring actual |
| 105 // accelerator hardware to be present. |
| 106 const char kUseFakeJpegDecodeAccelerator[] = "use-fake-jpeg-decode-accelerator"; |
| 107 |
| 103 // Enables support for inband text tracks in media content. | 108 // Enables support for inband text tracks in media content. |
| 104 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; | 109 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; |
| 105 | 110 |
| 106 // When running tests on a system without the required hardware or libraries, | 111 // When running tests on a system without the required hardware or libraries, |
| 107 // this flag will cause the tests to fail. Otherwise, they silently succeed. | 112 // this flag will cause the tests to fail. Otherwise, they silently succeed. |
| 108 const char kRequireAudioHardwareForTesting[] = | 113 const char kRequireAudioHardwareForTesting[] = |
| 109 "require-audio-hardware-for-testing"; | 114 "require-audio-hardware-for-testing"; |
| 110 | 115 |
| 111 // Allows clients to override the threshold for when the media renderer will | 116 // Allows clients to override the threshold for when the media renderer will |
| 112 // declare the underflow state for the video stream when audio is present. | 117 // declare the underflow state for the video stream when audio is present. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 209 |
| 205 // An experimental feature to enable persistent-license type support in MediaDrm | 210 // An experimental feature to enable persistent-license type support in MediaDrm |
| 206 // when using Encrypted Media Extensions (EME) API. | 211 // when using Encrypted Media Extensions (EME) API. |
| 207 // TODO(xhwang): Remove this after feature launch. See http://crbug.com/493521 | 212 // TODO(xhwang): Remove this after feature launch. See http://crbug.com/493521 |
| 208 const base::Feature kMediaDrmPersistentLicense{ | 213 const base::Feature kMediaDrmPersistentLicense{ |
| 209 "MediaDrmPersistentLicense", base::FEATURE_DISABLED_BY_DEFAULT}; | 214 "MediaDrmPersistentLicense", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 210 | 215 |
| 211 #endif | 216 #endif |
| 212 | 217 |
| 213 } // namespace media | 218 } // namespace media |
| OLD | NEW |