Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: media/base/media_switches.cc

Issue 23454006: Implement experimental MP3 support for Media Source API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build busters Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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";
11 11
12 // Enable EAC3 playback in MSE. 12 // Enable EAC3 playback in MSE.
13 const char kEnableEac3Playback[] = "enable-eac3-playback"; 13 const char kEnableEac3Playback[] = "enable-eac3-playback";
14 14
15 // Enables Opus playback in media elements. 15 // Enables Opus playback in media elements.
16 const char kEnableOpusPlayback[] = "enable-opus-playback"; 16 const char kEnableOpusPlayback[] = "enable-opus-playback";
17 17
18 // Enables VP8 Alpha playback in media elements. 18 // Enables VP8 Alpha playback in media elements.
19 const char kEnableVp8AlphaPlayback[] = "enable-vp8-alpha-playback"; 19 const char kEnableVp8AlphaPlayback[] = "enable-vp8-alpha-playback";
20 20
21 // Set number of threads to use for video decoding. 21 // Set number of threads to use for video decoding.
22 const char kVideoThreads[] = "video-threads"; 22 const char kVideoThreads[] = "video-threads";
23 23
24 // Override suppressed responses to canPlayType(). 24 // Override suppressed responses to canPlayType().
25 const char kOverrideEncryptedMediaCanPlayType[] = 25 const char kOverrideEncryptedMediaCanPlayType[] =
26 "override-encrypted-media-canplaytype"; 26 "override-encrypted-media-canplaytype";
27 27
28 // Enables MP3 stream parser for Media Source Extensions.
29 const char kEnableMP3StreamParser[] = "enable-mp3-stream-parser";
30
28 #if defined(GOOGLE_TV) 31 #if defined(GOOGLE_TV)
29 // Use external video surface for video with more than or equal pixels to 32 // Use external video surface for video with more than or equal pixels to
30 // specified value. For example, value of 0 will enable external video surface 33 // specified value. For example, value of 0 will enable external video surface
31 // for all videos, and value of 921600 (=1280*720) will enable external video 34 // for all videos, and value of 921600 (=1280*720) will enable external video
32 // surface for 720p video and larger. 35 // surface for 720p video and larger.
33 const char kUseExternalVideoSurfaceThresholdInPixels[] = 36 const char kUseExternalVideoSurfaceThresholdInPixels[] =
34 "use-external-video-surface-threshold-in-pixels"; 37 "use-external-video-surface-threshold-in-pixels";
35 #endif 38 #endif
36 39
37 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) 40 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Number of buffers to use for WaveOut. 79 // Number of buffers to use for WaveOut.
77 const char kWaveOutBuffers[] = "waveout-buffers"; 80 const char kWaveOutBuffers[] = "waveout-buffers";
78 #endif 81 #endif
79 82
80 #if defined(USE_CRAS) 83 #if defined(USE_CRAS)
81 // Use CRAS, the ChromeOS audio server. 84 // Use CRAS, the ChromeOS audio server.
82 const char kUseCras[] = "use-cras"; 85 const char kUseCras[] = "use-cras";
83 #endif 86 #endif
84 87
85 } // namespace switches 88 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698