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

Side by Side Diff: content/public/renderer/media_stream_api.h

Issue 938903003: Cast: Javascript bindings for cast receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cast_receiver_session
Patch Set: comments addressed Created 5 years, 9 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
« no previous file with comments | « content/public/renderer/BUILD.gn ('k') | content/public/renderer/media_stream_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_API_H_
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_API_H_
7
8 #include "content/common/content_export.h"
9 #include "media/base/audio_capturer_source.h"
10 #include "media/base/video_capturer_source.h"
11
12 namespace blink {
13 class WebMediaStreamSource;
14 }
15
16 namespace Media {
17 class AudioParameters;
18 }
19
20 namespace content {
21
22 // These two methods will initialize a WebMediaStreamSource object to take
23 // data from the provided audio or video capturer source.
24 // |is_remote| should be true if the source of the data is not a local device.
25 // |is_readonly| should be true if the format of the data cannot be changed by
26 // MediaTrackConstraints.
27 CONTENT_EXPORT bool AddVideoTrackToMediaStream(
28 scoped_ptr<media::VideoCapturerSource> source,
29 bool is_remote,
30 bool is_readonly,
31 const std::string& media_stream_url);
32 CONTENT_EXPORT bool AddAudioTrackToMediaStream(
33 scoped_refptr<media::AudioCapturerSource> source,
34 const media::AudioParameters& params,
35 bool is_remote,
36 bool is_readonly,
37 const std::string& media_stream_url);
38
39 } // namespace content
40
41 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_API_H_
OLDNEW
« no previous file with comments | « content/public/renderer/BUILD.gn ('k') | content/public/renderer/media_stream_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698