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/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, [], "", "", ""); 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: