diff --git a/CHANGELOG.md b/CHANGELOG.md index dba247e..b47a7b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog -------------------------------------------- +[1.1.1] - 2023-08-14 + +* Add more async methods. + [1.1.0] - 2023-06-29 * Add FrameCryptor interface. diff --git a/lib/src/media_stream.dart b/lib/src/media_stream.dart index 0f6d698..8590875 100644 --- a/lib/src/media_stream.dart +++ b/lib/src/media_stream.dart @@ -55,7 +55,9 @@ abstract class MediaStream { } /// Clones the given [MediaStream] and all its tracks. - Future clone(); + Future clone() { + throw UnimplementedError(); + } Future dispose() async { return Future.value(); diff --git a/lib/src/media_stream_track.dart b/lib/src/media_stream_track.dart index 0374b78..c7f9b8f 100644 --- a/lib/src/media_stream_track.dart +++ b/lib/src/media_stream_track.dart @@ -66,7 +66,9 @@ abstract class MediaStreamTrack { // throw UnimplementedError(); // } - // MediaStreamTrack clone(); + Future clone() async { + throw UnimplementedError(); + } Future stop(); diff --git a/lib/src/rtc_peerconnection.dart b/lib/src/rtc_peerconnection.dart index 3cb5531..a7d26d0 100644 --- a/lib/src/rtc_peerconnection.dart +++ b/lib/src/rtc_peerconnection.dart @@ -34,12 +34,28 @@ abstract class RTCPeerConnection { RTCSignalingState? get signalingState; + Future getSignalingState() async { + return signalingState; + } + RTCIceGatheringState? get iceGatheringState; + Future getIceGatheringState() async { + return iceGatheringState; + } + RTCIceConnectionState? get iceConnectionState; + Future getIceConnectionState() async { + return iceConnectionState; + } + RTCPeerConnectionState? get connectionState; + Future getConnectionState() async { + return connectionState; + } + Future dispose(); Map get getConfiguration; diff --git a/pubspec.yaml b/pubspec.yaml index a601cee..6799c09 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: webrtc_interface description: WebRTC Interface for Dart-Web/Flutter. -version: 1.1.0 +version: 1.1.1 homepage: https://flutter-webrtc.org environment: