Skip to content

Commit c239fe7

Browse files
authored
Merge pull request #21 from GetStream/chore/sync_0.13.1
chore: sync with flutter_webrtc 0.13.1
2 parents 27f4312 + 0ae2b8f commit c239fe7

File tree

6 files changed

+15
-19
lines changed

6 files changed

+15
-19
lines changed

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11

22
# Changelog
33

4+
[1.0.2] - 2025-03-03
5+
* Synced flutter-webrtc v0.13.1
6+
* [Android] fix: remove setPreferredInputDevice when getUserAduio. (#1808)
7+
* [Web] fix: race condition in RTCVideoRenderer for Web (#1805)
8+
* [Android] fix: Migrate from onSurfaceDestroyed to onSurfaceCleanup for SurfaceProducer.Callback. (#1806)
9+
410
[1.0.1] - 2025-04-01
511
* Fixed the dart_webrtc version constraint
612

Diff for: android/src/main/java/io/getstream/webrtc/flutter/GetUserMediaImpl.java

-10
Original file line numberDiff line numberDiff line change
@@ -376,16 +376,6 @@ private ConstraintsMap getUserAudio(ConstraintsMap constraints, MediaStream stre
376376

377377
mAudioSources.put(trackId, audioSource);
378378

379-
if (deviceId != null) {
380-
try {
381-
if (VERSION.SDK_INT >= VERSION_CODES.M) {
382-
setPreferredInputDevice(deviceId);
383-
}
384-
} catch (Exception e) {
385-
Log.e(TAG, "setPreferredInputDevice failed", e);
386-
}
387-
}
388-
389379
AudioTrack track = pcFactory.createAudioTrack(trackId, audioSource);
390380
stream.addTrack(track);
391381

Diff for: ios/stream_webrtc_flutter.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'stream_webrtc_flutter'
6-
s.version = '1.0.0'
6+
s.version = '1.0.2'
77
s.summary = 'Flutter WebRTC plugin for iOS.'
88
s.description = <<-DESC
99
A new flutter plugin project.

Diff for: lib/src/web/rtc_video_renderer_impl.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ class RTCVideoRenderer extends ValueNotifier<RTCVideoValue>
9292

9393
String get viewType => 'RTCVideoRenderer-$textureId';
9494

95-
void _updateAllValues() {
96-
final element = findHtmlView();
95+
void _updateAllValues(web.HTMLVideoElement fallback) {
96+
final element = findHtmlView() ?? fallback;
9797
value = value.copyWith(
9898
rotation: 0,
99-
width: element?.videoWidth.toDouble() ?? 0.0,
100-
height: element?.videoHeight.toDouble() ?? 0.0,
99+
width: element.videoWidth.toDouble(),
100+
height: element.videoHeight.toDouble(),
101101
renderVideo: renderVideo,
102102
);
103103
}
@@ -273,13 +273,13 @@ class RTCVideoRenderer extends ValueNotifier<RTCVideoValue>
273273

274274
_subscriptions.add(
275275
element.onCanPlay.listen((dynamic _) {
276-
_updateAllValues();
276+
_updateAllValues(element);
277277
}),
278278
);
279279

280280
_subscriptions.add(
281281
element.onResize.listen((dynamic _) {
282-
_updateAllValues();
282+
_updateAllValues(element);
283283
onResize?.call();
284284
}),
285285
);

Diff for: macos/stream_webrtc_flutter.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'stream_webrtc_flutter'
6-
s.version = '1.0.0'
6+
s.version = '1.0.2'
77
s.summary = 'Flutter WebRTC plugin for macOS.'
88
s.description = <<-DESC
99
A new flutter plugin project.

Diff for: pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: stream_webrtc_flutter
22
description: Flutter WebRTC plugin for iOS/Android/Destkop/Web, based on GoogleWebRTC.
3-
version: 1.0.1
3+
version: 1.0.2
44
homepage: https://github.com/GetStream/webrtc-flutter
55
environment:
66
sdk: ">=3.3.0 <4.0.0"

0 commit comments

Comments
 (0)