From 2d83c4b1b203db3f00e3cfedb48a34b13d686c06 Mon Sep 17 00:00:00 2001 From: Cadu Thiesen Date: Fri, 23 Aug 2024 15:32:54 -0300 Subject: [PATCH 1/2] Update media_stream_track.dart Select Audio Output method created to be able to override it in flutter_webrtc, thus controlling which peripheral device is used --- lib/src/media_stream_track.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/media_stream_track.dart b/lib/src/media_stream_track.dart index c7f9b8f..3c7ccf8 100644 --- a/lib/src/media_stream_track.dart +++ b/lib/src/media_stream_track.dart @@ -92,6 +92,10 @@ abstract class MediaStreamTrack { throw UnimplementedError(); } + void selectAudioOutput(String deviceId) { + throw UnimplementedError(); + } + Future captureFrame() { throw UnimplementedError(); } From c2b320b3791b3cc128bc690d7abf6bce7de6ca3b Mon Sep 17 00:00:00 2001 From: Cadu Thiesen Date: Fri, 23 Aug 2024 15:44:09 -0300 Subject: [PATCH 2/2] Update media_stream_track.dart Creating selectAudioInput method to be used in MediaStreamTrackNative from flutter_web_rtc --- lib/src/media_stream_track.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/media_stream_track.dart b/lib/src/media_stream_track.dart index 3c7ccf8..8bf9f4b 100644 --- a/lib/src/media_stream_track.dart +++ b/lib/src/media_stream_track.dart @@ -96,6 +96,10 @@ abstract class MediaStreamTrack { throw UnimplementedError(); } + void selectAudioInput(String deviceId) { + throw UnimplementedError(); + } + Future captureFrame() { throw UnimplementedError(); }