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

Unified Diff: content/public/renderer/media_stream_api.h

Issue 1505013002: Create CanvasCaptureMediaStreamTrack in a regular MediaStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/media_stream_api.h
diff --git a/content/public/renderer/media_stream_api.h b/content/public/renderer/media_stream_api.h
index dfb2aaf6ea1161d61c513b8634dedc460f98df54..d82838fe9f2d5ed63f39279d4825913f33d60c94 100644
--- a/content/public/renderer/media_stream_api.h
+++ b/content/public/renderer/media_stream_api.h
@@ -11,6 +11,7 @@
namespace blink {
class WebMediaStream;
+class WebMediaStreamTrack;
}
namespace media {
@@ -49,6 +50,18 @@ CONTENT_EXPORT bool AddAudioTrackToMediaStream(
bool is_readonly,
blink::WebMediaStream* web_stream);
+// This method creates a WebMediaStreamSource + MediaStreamSource pair with the
+// provided VideoCapturerSource. A new MediaStreamTrack is created, holding the
+// previous MediaStreamSource, and is plugged into the track passed as
+// |web_track|.
+// |is_remote| should be true if the source of the data is not a local device.
+// |is_readonly| should be true if the format of the data cannot be changed by
+// MediaTrackConstraints.
+CONTENT_EXPORT bool AddVideoCapturerSourceToVideoTrack(
+ scoped_ptr<media::VideoCapturerSource> source,
+ bool is_remote,
+ bool is_readonly,
+ blink::WebMediaStreamTrack* web_track);
} // namespace content
#endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_API_H_
« no previous file with comments | « no previous file | content/public/renderer/media_stream_api.cc » ('j') | content/public/renderer/media_stream_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698