Skip to content

Commit 2e28fcd

Browse files
authored
Upgrade libwebrtc-bin to 141.0.7390.107 version (#260)
1 parent 962dc71 commit 2e28fcd

File tree

10 files changed

+90
-66
lines changed

10 files changed

+90
-66
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ All user visible changes to this project will be documented in this file. This p
2626

2727
### Changed
2828

29-
- Upgraded [libwebrtc] to [141.0.7390.76] version. ([#256], [#254], [#248])
29+
- Upgraded [libwebrtc] to [141.0.7390.107] version. ([#256], [#254], [#248], [#260])
3030
- Removed camera permission request in `enumerateDevices()` on Android. ([#258])
3131

3232
### Fixed
@@ -46,7 +46,8 @@ All user visible changes to this project will be documented in this file. This p
4646
[#256]: https://github.com/instrumentisto/medea-flutter-webrtc/pull/256
4747
[#257]: https://github.com/instrumentisto/medea-flutter-webrtc/pull/257
4848
[#258]: https://github.com/instrumentisto/medea-flutter-webrtc/pull/258
49-
[141.0.7390.76]: https://github.com/instrumentisto/libwebrtc-bin/releases/tag/141.0.7390.76
49+
[#260]: https://github.com/instrumentisto/medea-flutter-webrtc/pull/260
50+
[141.0.7390.107]: https://github.com/instrumentisto/libwebrtc-bin/releases/tag/141.0.7390.107
5051

5152

5253

Cargo.lock

Lines changed: 34 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Medea Flutter-WebRTC
22
====================
33

44
[![pub](https://img.shields.io/pub/v/medea_flutter_webrtc "pub")](https://pub.dev/packages/medea_flutter_webrtc)
5-
[![libwebrtc](https://img.shields.io/badge/libwebrtc-141.0.7390.76-blue "libwebrtc")](https://github.com/instrumentisto/libwebrtc-bin/releases/tag/141.0.7390.76)
5+
[![libwebrtc](https://img.shields.io/badge/libwebrtc-141.0.7390.107-blue "libwebrtc")](https://github.com/instrumentisto/libwebrtc-bin/releases/tag/141.0.7390.107)
66
[![OpenAL](https://img.shields.io/badge/OpenAL-1.24.3-blue "OpenAL")](https://github.com/kcat/openal-soft/releases/tag/1.24.3)
77
[![WIL](https://img.shields.io/badge/WIL-1.0.240803.1-blue "WIL")](https://github.com/microsoft/wil/releases/tag/v1.0.240803.1)
88

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ android {
6363

6464
dependencies {
6565
if (webrtcBranch == null) {
66-
implementation "com.github.instrumentisto:libwebrtc-bin:141.0.7390.76@aar"
66+
implementation "com.github.instrumentisto:libwebrtc-bin:141.0.7390.107@aar"
6767
} else {
6868
implementation(name: "libwebrtc-bin-${webrtcBranch}", ext: 'aar')
6969
}

crates/libwebrtc-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libwebrtc-sys"
3-
version = "0.0.0+141.0.7390.76"
3+
version = "0.0.0+141.0.7390.107"
44
edition = "2024"
55
rust-version = "1.90"
66
publish = false

crates/libwebrtc-sys/build/webrtc.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static LIBWEBRTC_URL: &str = "https://github.com/instrumentisto/libwebrtc-bin";
2828
/// Release tag for downloading the [`libwebrtc-bin`].
2929
///
3030
/// [`libwebrtc-bin`]: https://github.com/instrumentisto/libwebrtc-bin
31-
static LIBWEBRTC_RELEASE: &str = "141.0.7390.76";
31+
static LIBWEBRTC_RELEASE: &str = "141.0.7390.107";
3232

3333
/// Base URL for the [`libwebrtc-bin`] GitHub API.
3434
///
@@ -40,19 +40,19 @@ static GITHUB_API_URL: &str =
4040
fn get_expected_libwebrtc_hash() -> anyhow::Result<&'static str> {
4141
Ok(match get_target()? {
4242
Platform::LinuxArm64 => {
43-
"6c7daad16e667d5ca822a08e03cb05718c187745d8cd6a4b02e2cbb9966440e4"
43+
"2bf03cb548f1f59cdf84b8294ab7df3d6b492fdbde26f7f187e73c15e11e8442"
4444
}
4545
Platform::LinuxX64 => {
46-
"78c78cc4d03846f12832ce09bcd5913d511e6fe4789dae7e303c239336620c5b"
46+
"5de787524c3b69bda7f2f5a6c976612ed020a9a7eb1d8548adc071ad8da1aaf3"
4747
}
4848
Platform::MacOSArm64 => {
49-
"d7baeb1b3de188d93e2ece1b487ae8f5c7d34f1ef391642431da900daa589e26"
49+
"ed0db508b0143e1500423fcaef7ff1fb28362eb299fc0e566c8c82b6ffd10b0c"
5050
}
5151
Platform::MacOSX64 => {
52-
"181e0e19cffe93995f214a0a04829e9b13ad11a2a1c7986f12fc7ed49bc22cc0"
52+
"1836fafbdb82f105c920ae7e00ff6624cf2fc70615b6fe1af490f4d6102904d2"
5353
}
5454
Platform::WindowsX64 => {
55-
"52f2bce8c9e22f90bf9c0b13767a6eae559c87be51148dafbf4eeb264d840d9f"
55+
"3cc386b2b19d44c14c83e7d8ddf1c60798ab621b2e962cdd91194c323d43e3ce"
5656
}
5757
})
5858
}

example/integration_test/webrtc_test.dart

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,39 @@ void main() {
15331533
await audioTrack.dispose();
15341534
});
15351535

1536+
testWidgets('setLocalDescription', (WidgetTester tester) async {
1537+
// Tests the previously fixed issue in `libwebrtc-bin` caused by
1538+
// `VideoDecoderFactory` not supporting some codecs that
1539+
// `VideoEncoderFactory` declared to support. This caused these codecs
1540+
// to be included in an SDP offer and rejected in the `setLocalDescription`.
1541+
// Performs 2 negotiations and changes transceiver direction to hit certain
1542+
// branches in `libwebrtc` source code.
1543+
var pc1 = await PeerConnection.create(IceTransportType.all, []);
1544+
var tv = await pc1.addTransceiver(
1545+
MediaKind.video,
1546+
RtpTransceiverInit(TransceiverDirection.sendRecv),
1547+
);
1548+
var ta = await pc1.addTransceiver(
1549+
MediaKind.audio,
1550+
RtpTransceiverInit(TransceiverDirection.sendRecv),
1551+
);
1552+
1553+
{
1554+
tv.setDirection(TransceiverDirection.sendOnly);
1555+
var offer = await pc1.createOffer();
1556+
await pc1.setLocalDescription(offer);
1557+
}
1558+
{
1559+
tv.setDirection(TransceiverDirection.sendRecv);
1560+
var offer = await pc1.createOffer();
1561+
await pc1.setLocalDescription(offer);
1562+
}
1563+
1564+
await ta.dispose();
1565+
await tv.dispose();
1566+
await pc1.close();
1567+
});
1568+
15361569
testWidgets('Audio processing in get user media', (
15371570
WidgetTester tester,
15381571
) async {

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- instrumentisto-libwebrtc-bin (141.0.7390.76)
3+
- instrumentisto-libwebrtc-bin (141.0.7390.107)
44
- integration_test (0.0.1):
55
- Flutter
66
- medea_flutter_webrtc (0.16.0-dev):
77
- Flutter
8-
- instrumentisto-libwebrtc-bin (= 141.0.7390.76)
8+
- instrumentisto-libwebrtc-bin (= 141.0.7390.107)
99

1010
DEPENDENCIES:
1111
- Flutter (from `Flutter`)

0 commit comments

Comments
 (0)