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

Unified Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp

Issue 2651353002: Get the device ID in getSettings() (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
index 439779d087484910e824015b624a8be1a9585c28..a8fd4e8e47efcb24a78cd42b1d5320b1ae54e8f8 100644
--- a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
+++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
@@ -90,6 +90,10 @@ bool MediaStreamSource::removeAudioConsumer(
return true;
}
+void MediaStreamSource::getSettings(WebMediaStreamTrack::Settings& settings) {
+ settings.deviceId = id();
+}
+
void MediaStreamSource::setAudioFormat(size_t numberOfChannels,
float sampleRate) {
ASSERT(m_requiresConsumer);

Powered by Google App Engine
This is Rietveld 408576698