Skip to content

Commit 446cac5

Browse files
authored
Merge branch 'livekit:main' into video-size-constraint
2 parents 8042559 + 1ad4cf7 commit 446cac5

File tree

6 files changed

+38
-6
lines changed

6 files changed

+38
-6
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# CHANGELOG
22

3+
## 2.4.4
4+
5+
* feat: data stream
6+
* fix: calling setSourceEnabled should not affect the current output settings (#754)
7+
* fix: Calling connect on a disconnected room instance should reset _isClosed. (#752)
8+
* fix: Fix for Chrome getUserMedia "ideal" Constraint Change.
9+
* fix: fix duplicate fmtp for vp9 on some old Android devices. (#758)
10+
11+
## 2.4.3
12+
13+
* feat: Automatically configure audio mode for Android. (#746)
14+
315
## 2.4.2+hotfix.2
416

517
* fix: Fix creation timing for local participant. (#749)

ios/livekit_client.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'livekit_client'
3-
s.version = '2.4.2'
3+
s.version = '2.4.4'
44
s.summary = 'Open source platform for real-time audio and video.'
55
s.description = 'Open source platform for real-time audio and video.'
66
s.homepage = 'https://livekit.io/'

lib/src/core/engine.dart

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ class Engine extends Disposable with EventsEmittable<EngineEvent> {
189189
_regionUrlProvider = regionUrlProvider;
190190
}
191191

192+
//reset state
193+
_isClosed = false;
194+
192195
try {
193196
// wait for socket to connect rtc server
194197
await signalClient.connect(
@@ -1223,7 +1226,15 @@ extension EngineInternalMethods on Engine {
12231226

12241227
var matchesVideoCodec = codec == 'video/$videoCodec';
12251228
if (!matchesVideoCodec) {
1226-
unmatched.add(c);
1229+
if (lkPlatformIs(PlatformType.android) && codec == 'video/vp9') {
1230+
if (c.sdpFmtpLine != null &&
1231+
(c.sdpFmtpLine!.contains('profile-id=0') ||
1232+
c.sdpFmtpLine!.contains('profile-id=1'))) {
1233+
unmatched.add(c);
1234+
}
1235+
} else {
1236+
unmatched.add(c);
1237+
}
12271238
continue;
12281239
}
12291240
// for h264 codecs that have sdpFmtpLine available, use only if the
@@ -1237,7 +1248,15 @@ extension EngineInternalMethods on Engine {
12371248
}
12381249
continue;
12391250
}
1240-
matched.add(c);
1251+
if (lkPlatformIs(PlatformType.android) && codec == 'video/vp9') {
1252+
if (c.sdpFmtpLine != null &&
1253+
(c.sdpFmtpLine!.contains('profile-id=0') ||
1254+
c.sdpFmtpLine!.contains('profile-id=1'))) {
1255+
matched.add(c);
1256+
}
1257+
} else {
1258+
matched.add(c);
1259+
}
12411260
}
12421261
matched.addAll([...partialMatched, ...unmatched]);
12431262
try {

lib/src/livekit.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import 'support/native.dart';
2020
/// Main entry point to connect to a room.
2121
/// {@category Room}
2222
class LiveKitClient {
23-
static const version = '2.4.2+hotfix.2';
23+
static const version = '2.4.4';
2424

2525
/// Initialize the WebRTC plugin. If this is not manually called, will be
2626
/// initialized with default settings.

macos/livekit_client.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'livekit_client'
3-
s.version = '2.4.2'
3+
s.version = '2.4.4'
44
s.summary = 'Open source platform for real-time audio and video.'
55
s.description = 'Open source platform for real-time audio and video.'
66
s.homepage = 'https://livekit.io/'

pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
name: livekit_client
1616
description: Flutter Client SDK for LiveKit.
1717
Build real-time video and audio into your apps. Supports iOS, Android, and Web.
18-
version: 2.4.2+hotfix.2
18+
version: 2.4.4
1919
homepage: https://github.com/livekit/client-sdk-flutter
2020

2121
environment:
@@ -43,6 +43,7 @@ dependencies:
4343
sdp_transform: ^0.3.2
4444
web: ^1.0.0
4545
mime_type: ^1.0.1
46+
path: ^1.9.1
4647

4748
dev_dependencies:
4849
flutter_test:

0 commit comments

Comments
 (0)