Skip to content

Commit 359f64b

Browse files
committed
release: 1.1.1
1 parent c6f948c commit 359f64b

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

33
--------------------------------------------
4+
[1.1.1] - 2023-08-14
5+
6+
* Add more async methods.
7+
48
[1.1.0] - 2023-06-29
59

610
* Add FrameCryptor interface.

lib/src/media_stream.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ abstract class MediaStream {
5555
}
5656

5757
/// Clones the given [MediaStream] and all its tracks.
58-
Future<MediaStream> clone();
58+
Future<MediaStream> clone() {
59+
throw UnimplementedError();
60+
}
5961

6062
Future<void> dispose() async {
6163
return Future.value();

lib/src/media_stream_track.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ abstract class MediaStreamTrack {
6666
// throw UnimplementedError();
6767
// }
6868

69-
// MediaStreamTrack clone();
69+
Future<MediaStreamTrack> clone() async {
70+
throw UnimplementedError();
71+
}
7072

7173
Future<void> stop();
7274

lib/src/rtc_peerconnection.dart

+16
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,28 @@ abstract class RTCPeerConnection {
3434

3535
RTCSignalingState? get signalingState;
3636

37+
Future<RTCSignalingState?> getSignalingState() async {
38+
return signalingState;
39+
}
40+
3741
RTCIceGatheringState? get iceGatheringState;
3842

43+
Future<RTCIceGatheringState?> getIceGatheringState() async {
44+
return iceGatheringState;
45+
}
46+
3947
RTCIceConnectionState? get iceConnectionState;
4048

49+
Future<RTCIceConnectionState?> getIceConnectionState() async {
50+
return iceConnectionState;
51+
}
52+
4153
RTCPeerConnectionState? get connectionState;
4254

55+
Future<RTCPeerConnectionState?> getConnectionState() async {
56+
return connectionState;
57+
}
58+
4359
Future<void> dispose();
4460

4561
Map<String, dynamic> get getConfiguration;

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: webrtc_interface
22
description: WebRTC Interface for Dart-Web/Flutter.
3-
version: 1.1.0
3+
version: 1.1.1
44
homepage: https://flutter-webrtc.org
55

66
environment:

0 commit comments

Comments
 (0)