| 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 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "ppapi/features/features.h" | 8 #include "ppapi/features/features.h" |
| 9 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| 11 | 11 |
| 12 // Allow users to specify a custom buffer size for debugging purpose. | 12 // Allow users to specify a custom buffer size for debugging purpose. |
| 13 const char kAudioBufferSize[] = "audio-buffer-size"; | 13 const char kAudioBufferSize[] = "audio-buffer-size"; |
| 14 | 14 |
| 15 // Command line flag name to set the autoplay policy. | 15 // Command line flag name to set the autoplay policy. |
| 16 const char kAutoplayPolicy[] = "autoplay-policy"; | 16 const char kAutoplayPolicy[] = "autoplay-policy"; |
| 17 | 17 |
| 18 // Set number of threads to use for video decoding. | 18 // Set number of threads to use for video decoding. |
| 19 const char kVideoThreads[] = "video-threads"; | 19 const char kVideoThreads[] = "video-threads"; |
| 20 | 20 |
| 21 // Suspend media pipeline on background tabs. | 21 // Suspend media pipeline on background tabs. |
| 22 const char kEnableMediaSuspend[] = "enable-media-suspend"; | 22 const char kEnableMediaSuspend[] = "enable-media-suspend"; |
| 23 const char kDisableMediaSuspend[] = "disable-media-suspend"; | 23 const char kDisableMediaSuspend[] = "disable-media-suspend"; |
| 24 | 24 |
| 25 // Force to report VP9 as an unsupported MIME type. | 25 // Force to report VP9 as an unsupported MIME type. |
| 26 const char kReportVp9AsAnUnsupportedMimeType[] = | 26 const char kReportVp9AsAnUnsupportedMimeType[] = |
| 27 "report-vp9-as-an-unsupported-mime-type"; | 27 "report-vp9-as-an-unsupported-mime-type"; |
| 28 | 28 |
| 29 // Enable parsing of new multi-part VP9 string for webm. | |
| 30 const char kEnableNewVp9CodecString[] = "enable-new-vp9-codec-string"; | |
| 31 | |
| 32 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) | 29 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) |
| 33 // The Alsa device to use when opening an audio input stream. | 30 // The Alsa device to use when opening an audio input stream. |
| 34 const char kAlsaInputDevice[] = "alsa-input-device"; | 31 const char kAlsaInputDevice[] = "alsa-input-device"; |
| 35 // The Alsa device to use when opening an audio stream. | 32 // The Alsa device to use when opening an audio stream. |
| 36 const char kAlsaOutputDevice[] = "alsa-output-device"; | 33 const char kAlsaOutputDevice[] = "alsa-output-device"; |
| 37 #endif | 34 #endif |
| 38 | 35 |
| 39 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
| 40 // Use exclusive mode audio streaming for Windows Vista and higher. | 37 // Use exclusive mode audio streaming for Windows Vista and higher. |
| 41 // Leads to lower latencies for audio streams which uses the | 38 // Leads to lower latencies for audio streams which uses the |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 304 |
| 308 // The default value is platform dependent. | 305 // The default value is platform dependent. |
| 309 #if defined(OS_ANDROID) | 306 #if defined(OS_ANDROID) |
| 310 return switches::autoplay::kUserGestureRequiredPolicy; | 307 return switches::autoplay::kUserGestureRequiredPolicy; |
| 311 #else | 308 #else |
| 312 return switches::autoplay::kNoUserGestureRequiredPolicy; | 309 return switches::autoplay::kNoUserGestureRequiredPolicy; |
| 313 #endif | 310 #endif |
| 314 } | 311 } |
| 315 | 312 |
| 316 } // namespace media | 313 } // namespace media |
| OLD | NEW |