From a4c5267a964f98a2dbd40362370791f7393dfef4 Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Mon, 19 Aug 2024 12:20:17 +0300 Subject: [PATCH 1/2] Separete the DataChannelOnly from publish --- lib/src/helpers/helper.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/helpers/helper.dart b/lib/src/helpers/helper.dart index 1902cbc7..e649082d 100644 --- a/lib/src/helpers/helper.dart +++ b/lib/src/helpers/helper.dart @@ -346,9 +346,11 @@ class AntHelper { print('onOpen'); onStateChange(HelperState.ConnectionOpen); - if (_type == AntMediaType.Publish || - _type == AntMediaType.DataChannelOnly) { + if (_type == AntMediaType.Publish) { publish(_streamId, _token, "", "", _streamId, "", ""); + } else if (_type == AntMediaType.DataChannelOnly) { + publish(_streamId, _token, "", "", _streamId, "", ""); + play(_streamId, _token, "", [], "", "", ""); } else if (_type == AntMediaType.Conference) { publish(_streamId, _token, "", "", _streamId, _roomId, ""); play(_roomId, _token, _roomId, [], "", "", ""); From f423c390d20c1ccd567b3d921ae8e45ddb489947 Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Mon, 19 Aug 2024 12:22:33 +0300 Subject: [PATCH 2/2] Increase the sdk version to 1.4.4 --- CHANGELOG.md | 3 +++ pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f15507e..398f81b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.4.4 +- **FIX**: Fix the data channel connectivity issue. + ## 1.4.3 - **FIX**: Fix the C++ onTrack failed error on Android Devices. diff --git a/pubspec.yaml b/pubspec.yaml index 966f8db4..6cde2794 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: ant_media_flutter description: Flutter Package to use Ant Media Server Enterprise Edition Streaming Engine on Android, iOS, Web and Desktop -version: 1.4.3 +version: 1.4.4 homepage: https://github.com/ant-media/WebRTC-Flutter-SDK environment: