| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const char kDisableRTCSmoothnessAlgorithm[] = | 122 const char kDisableRTCSmoothnessAlgorithm[] = |
| 123 "disable-rtc-smoothness-algorithm"; | 123 "disable-rtc-smoothness-algorithm"; |
| 124 | 124 |
| 125 // Enables demuxing of vp9 in mp4. Note that this flag will not have any effect | 125 // Enables demuxing of vp9 in mp4. Note that this flag will not have any effect |
| 126 // if MP4 demuxing is not enabled in the build. | 126 // if MP4 demuxing is not enabled in the build. |
| 127 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4"; | 127 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4"; |
| 128 | 128 |
| 129 // Force media player using SurfaceView instead of SurfaceTexture on Android. | 129 // Force media player using SurfaceView instead of SurfaceTexture on Android. |
| 130 const char kForceVideoOverlays[] = "force-video-overlays"; | 130 const char kForceVideoOverlays[] = "force-video-overlays"; |
| 131 | 131 |
| 132 // Allows explicitly specifying MSE audio/video buffer sizes. |
| 133 // Default values are 150M for video and 12M for audio. |
| 134 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit"; |
| 135 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit"; |
| 136 |
| 132 } // namespace switches | 137 } // namespace switches |
| 133 | 138 |
| 134 namespace media { | 139 namespace media { |
| 135 | 140 |
| 136 #if defined(ENABLE_PLUGINS) | 141 #if defined(ENABLE_PLUGINS) |
| 137 // Let flash join and be controlled by media session, only valid when | 142 // Let flash join and be controlled by media session, only valid when |
| 138 // |kEnableDefaultMediaSession| is on. | 143 // |kEnableDefaultMediaSession| is on. |
| 139 const base::Feature kFlashJoinsMediaSession{"flash-join-media-session", | 144 const base::Feature kFlashJoinsMediaSession{"flash-join-media-session", |
| 140 base::FEATURE_DISABLED_BY_DEFAULT}; | 145 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 141 #endif // defined(ENABLE_PLUGINS) | 146 #endif // defined(ENABLE_PLUGINS) |
| 142 | 147 |
| 143 // Use new audio rendering mixer. | 148 // Use new audio rendering mixer. |
| 144 const base::Feature kNewAudioRenderingMixingStrategy{ | 149 const base::Feature kNewAudioRenderingMixingStrategy{ |
| 145 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; | 150 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 146 | 151 |
| 147 // Use shared block-based buffering for media. | 152 // Use shared block-based buffering for media. |
| 148 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 153 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
| 149 base::FEATURE_ENABLED_BY_DEFAULT}; | 154 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 150 | 155 |
| 151 } // namespace media | 156 } // namespace media |
| OLD | NEW |