| 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 |
| 11 // Allow users to specify a custom buffer size for debugging purpose. | 11 // Allow users to specify a custom buffer size for debugging purpose. |
| 12 const char kAudioBufferSize[] = "audio-buffer-size"; | 12 const char kAudioBufferSize[] = "audio-buffer-size"; |
| 13 | 13 |
| 14 // Set number of threads to use for video decoding. | 14 // Set number of threads to use for video decoding. |
| 15 const char kVideoThreads[] = "video-threads"; | 15 const char kVideoThreads[] = "video-threads"; |
| 16 | 16 |
| 17 // Suspend media pipeline on background tabs. | 17 // Suspend media pipeline on background tabs. |
| 18 const char kEnableMediaSuspend[] = "enable-media-suspend"; | 18 const char kEnableMediaSuspend[] = "enable-media-suspend"; |
| 19 const char kDisableMediaSuspend[] = "disable-media-suspend"; | 19 const char kDisableMediaSuspend[] = "disable-media-suspend"; |
| 20 | 20 |
| 21 // Force to report VP9 as an unsupported MIME type. | 21 // Force to report VP9 as an unsupported MIME type. |
| 22 const char kReportVp9AsAnUnsupportedMimeType[] = | 22 const char kReportVp9AsAnUnsupportedMimeType[] = |
| 23 "report-vp9-as-an-unsupported-mime-type"; | 23 "report-vp9-as-an-unsupported-mime-type"; |
| 24 | 24 |
| 25 // Enable parsing of new multi-part VP9 string for webm. |
| 26 const char kEnableNewVp9CodecString[] = "enable-new-vp9-codec-string"; |
| 27 |
| 25 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) | 28 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) |
| 26 // The Alsa device to use when opening an audio input stream. | 29 // The Alsa device to use when opening an audio input stream. |
| 27 const char kAlsaInputDevice[] = "alsa-input-device"; | 30 const char kAlsaInputDevice[] = "alsa-input-device"; |
| 28 // The Alsa device to use when opening an audio stream. | 31 // The Alsa device to use when opening an audio stream. |
| 29 const char kAlsaOutputDevice[] = "alsa-output-device"; | 32 const char kAlsaOutputDevice[] = "alsa-output-device"; |
| 30 #endif | 33 #endif |
| 31 | 34 |
| 32 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
| 33 // Use exclusive mode audio streaming for Windows Vista and higher. | 36 // Use exclusive mode audio streaming for Windows Vista and higher. |
| 34 // Leads to lower latencies for audio streams which uses the | 37 // Leads to lower latencies for audio streams which uses the |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 204 |
| 202 // An experimental feature to enable persistent-license type support in MediaDrm | 205 // An experimental feature to enable persistent-license type support in MediaDrm |
| 203 // when using Encrypted Media Extensions (EME) API. | 206 // when using Encrypted Media Extensions (EME) API. |
| 204 // TODO(xhwang): Remove this after feature launch. See http://crbug.com/493521 | 207 // TODO(xhwang): Remove this after feature launch. See http://crbug.com/493521 |
| 205 const base::Feature kMediaDrmPersistentLicense{ | 208 const base::Feature kMediaDrmPersistentLicense{ |
| 206 "MediaDrmPersistentLicense", base::FEATURE_DISABLED_BY_DEFAULT}; | 209 "MediaDrmPersistentLicense", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 207 | 210 |
| 208 #endif | 211 #endif |
| 209 | 212 |
| 210 } // namespace media | 213 } // namespace media |
| OLD | NEW |