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

Unified Diff: Source/platform/exported/WebMediaStreamSource.cpp

Issue 569613002: Add the possibility to specify MediaStreamTrack::remote when creating a track. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed construction call from WebAudio. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/exported/WebMediaStreamSource.cpp
diff --git a/Source/platform/exported/WebMediaStreamSource.cpp b/Source/platform/exported/WebMediaStreamSource.cpp
index 77887575fcdf6f4fe140959e925d5c069be55c55..fb2422a920c4e905273acda4e64e1a1f8a391c4c 100644
--- a/Source/platform/exported/WebMediaStreamSource.cpp
+++ b/Source/platform/exported/WebMediaStreamSource.cpp
@@ -102,7 +102,12 @@ WebMediaStreamSource::operator MediaStreamSource*() const
void WebMediaStreamSource::initialize(const WebString& id, Type type, const WebString& name)
{
- m_private = MediaStreamSource::create(id, static_cast<MediaStreamSource::Type>(type), name);
+ m_private = MediaStreamSource::create(id, static_cast<MediaStreamSource::Type>(type), name, false, true);
+}
+
+void WebMediaStreamSource::initialize(const WebString& id, Type type, const WebString& name, bool remote, bool readonly)
+{
+ m_private = MediaStreamSource::create(id, static_cast<MediaStreamSource::Type>(type), name, remote, readonly);
}
WebString WebMediaStreamSource::id() const
« no previous file with comments | « Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp ('k') | Source/platform/mediastream/MediaStreamSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698