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

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

Issue 816193003: Add a new audio constraint, 'googHotword', that requests the hotword input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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 13 matching lines...) Expand all
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. 31 // Controls whether ducking of audio is enabled on platforms that support it.
32 CONTENT_EXPORT extern const char kMediaStreamAudioDucking[]; 32 CONTENT_EXPORT extern const char kMediaStreamAudioDucking[];
33 33
34 // Controls whether the hotword audio stream is used on platforms that support
35 // it.
36 CONTENT_EXPORT extern const char kMediaStreamAudioHotword[];
37
34 // StreamOptions is a Chromium representation of constraints 38 // StreamOptions is a Chromium representation of constraints
35 // used in WebUserMediaRequest. 39 // used in WebUserMediaRequest.
36 // It describes properties requested by JS in a request for a new 40 // It describes properties requested by JS in a request for a new
37 // media stream. 41 // media stream.
38 class CONTENT_EXPORT StreamOptions { 42 class CONTENT_EXPORT StreamOptions {
39 public: 43 public:
40 StreamOptions(); 44 StreamOptions();
41 StreamOptions(bool request_audio, bool request_video); 45 StreamOptions(bool request_audio, bool request_video);
42 ~StreamOptions(); 46 ~StreamOptions();
43 47
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 112
109 // Id for this capture session. Unique for all sessions of the same type. 113 // Id for this capture session. Unique for all sessions of the same type.
110 int session_id; 114 int session_id;
111 }; 115 };
112 116
113 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray; 117 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray;
114 118
115 } // namespace content 119 } // namespace content
116 120
117 #endif // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ 121 #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