CoreAudioCaptureSource should be marked as an audio capture track
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 May 2019 21:50:05 +0000 (21:50 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 May 2019 21:50:05 +0000 (21:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=197953
<rdar://problem/50552007>

Reviewed by Eric Carlson.

Manually tested.

* platform/mediastream/mac/CoreAudioCaptureSource.h:
Mark it as microphone so that it can get muted properly.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245407 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h

index 52b8265..38f453d 100644 (file)
@@ -1,3 +1,16 @@
+2019-05-16  Youenn Fablet  <youenn@apple.com>
+
+        CoreAudioCaptureSource should be marked as an audio capture track
+        https://bugs.webkit.org/show_bug.cgi?id=197953
+        <rdar://problem/50552007>
+
+        Reviewed by Eric Carlson.
+
+        Manually tested.
+
+        * platform/mediastream/mac/CoreAudioCaptureSource.h:
+        Mark it as microphone so that it can get muted properly.
+
 2019-05-16  Alex Christensen  <achristensen@webkit.org>
 
         Add SPI to set a list of hosts to which to send custom header fields cross-origin
index b3ea782..1ab816c 100644 (file)
@@ -92,6 +92,7 @@ private:
     void settingsDidChange(OptionSet<RealtimeMediaSourceSettings::Flag>) final;
 
     bool interrupted() const final;
+    CaptureDevice::DeviceType deviceType() const final { return CaptureDevice::DeviceType::Microphone; }
 
     void initializeToStartProducingData();