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

Side by Side Diff: content/common/media/media_stream_options.h

Issue 1314803003: Include default communication devices in audio device enumerations. This removes heuristic that pic… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment Created 5 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
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 #ifndef CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ 5 #ifndef CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_
6 #define CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ 6 #define CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 10 matching lines...) Expand all
21 CONTENT_EXPORT extern const char kMediaStreamSourceScreen[]; 21 CONTENT_EXPORT extern const char kMediaStreamSourceScreen[];
22 CONTENT_EXPORT extern const char kMediaStreamSourceDesktop[]; 22 CONTENT_EXPORT extern const char kMediaStreamSourceDesktop[];
23 CONTENT_EXPORT extern const char kMediaStreamSourceSystem[]; 23 CONTENT_EXPORT extern const char kMediaStreamSourceSystem[];
24 24
25 // Experimental constraint to do device matching. When this optional constraint 25 // Experimental constraint to do device matching. When this optional constraint
26 // is set, WebRTC audio renderer will render audio from media streams to an 26 // is set, WebRTC audio renderer will render audio from media streams to an
27 // output device that belongs to the same hardware as the requested source 27 // output device that belongs to the same hardware as the requested source
28 // device belongs to. 28 // device belongs to.
29 CONTENT_EXPORT extern const char kMediaStreamRenderToAssociatedSink[]; 29 CONTENT_EXPORT extern const char kMediaStreamRenderToAssociatedSink[];
30 30
31 // Controls whether ducking of audio is enabled on platforms that support it.
32 CONTENT_EXPORT extern const char kMediaStreamAudioDucking[];
33
34 // Controls whether the hotword audio stream is used on platforms that support 31 // Controls whether the hotword audio stream is used on platforms that support
35 // it. 32 // it.
36 CONTENT_EXPORT extern const char kMediaStreamAudioHotword[]; 33 CONTENT_EXPORT extern const char kMediaStreamAudioHotword[];
37 34
38 // StreamOptions is a Chromium representation of constraints 35 // StreamOptions is a Chromium representation of constraints
39 // used in WebUserMediaRequest. 36 // used in WebUserMediaRequest.
40 // It describes properties requested by JS in a request for a new 37 // It describes properties requested by JS in a request for a new
41 // media stream. 38 // media stream.
42 class CONTENT_EXPORT StreamOptions { 39 class CONTENT_EXPORT StreamOptions {
43 public: 40 public:
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 109
113 // Id for this capture session. Unique for all sessions of the same type. 110 // Id for this capture session. Unique for all sessions of the same type.
114 int session_id; 111 int session_id;
115 }; 112 };
116 113
117 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray; 114 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray;
118 115
119 } // namespace content 116 } // namespace content
120 117
121 #endif // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ 118 #endif // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | content/common/media/media_stream_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698