Expose dataChannel for e2e testing. (#161)
This commit is contained in:
@@ -105,7 +105,7 @@ packages:
|
|||||||
name: dart_webrtc
|
name: dart_webrtc
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.7"
|
version: "1.0.8"
|
||||||
dbus:
|
dbus:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -232,7 +232,7 @@ packages:
|
|||||||
name: flutter_webrtc
|
name: flutter_webrtc
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.9.4"
|
version: "0.9.6"
|
||||||
google_fonts:
|
google_fonts:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -573,7 +573,7 @@ packages:
|
|||||||
name: webrtc_interface
|
name: webrtc_interface
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.7"
|
version: "1.0.8"
|
||||||
win32:
|
win32:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ class Engine extends Disposable with EventsEmittable<EngineEvent> {
|
|||||||
@internal
|
@internal
|
||||||
Transport? get primary => _subscriberPrimary ? subscriber : publisher;
|
Transport? get primary => _subscriberPrimary ? subscriber : publisher;
|
||||||
|
|
||||||
|
rtc.RTCDataChannel? get dataChannel => _subscriberPrimary
|
||||||
|
? _reliableDCSub ?? _lossyDCSub
|
||||||
|
: _reliableDCPub ?? _lossyDCPub;
|
||||||
|
|
||||||
// data channels for packets
|
// data channels for packets
|
||||||
rtc.RTCDataChannel? _reliableDCPub;
|
rtc.RTCDataChannel? _reliableDCPub;
|
||||||
rtc.RTCDataChannel? _lossyDCPub;
|
rtc.RTCDataChannel? _lossyDCPub;
|
||||||
@@ -110,6 +114,11 @@ class Engine extends Disposable with EventsEmittable<EngineEvent> {
|
|||||||
this.roomOptions = roomOptions ?? this.roomOptions;
|
this.roomOptions = roomOptions ?? this.roomOptions;
|
||||||
this.fastConnectOptions = fastConnectOptions;
|
this.fastConnectOptions = fastConnectOptions;
|
||||||
|
|
||||||
|
if (connectionState == ConnectionState.connected) {
|
||||||
|
logger.fine('already connected');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_updateConnectionState(ConnectionState.connecting);
|
_updateConnectionState(ConnectionState.connecting);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
+3
-3
@@ -161,7 +161,7 @@ packages:
|
|||||||
name: dart_webrtc
|
name: dart_webrtc
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.7"
|
version: "1.0.8"
|
||||||
dbus:
|
dbus:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -267,7 +267,7 @@ packages:
|
|||||||
name: flutter_webrtc
|
name: flutter_webrtc
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.9.4"
|
version: "0.9.6"
|
||||||
glob:
|
glob:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -559,7 +559,7 @@ packages:
|
|||||||
name: webrtc_interface
|
name: webrtc_interface
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.7"
|
version: "1.0.8"
|
||||||
win32:
|
win32:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
+3
-3
@@ -23,10 +23,10 @@ dependencies:
|
|||||||
uuid: ^3.0.6
|
uuid: ^3.0.6
|
||||||
synchronized: ^3.0.0
|
synchronized: ^3.0.0
|
||||||
protobuf: ^2.0.1
|
protobuf: ^2.0.1
|
||||||
flutter_webrtc: 0.9.4
|
flutter_webrtc: 0.9.6
|
||||||
dart_webrtc: 1.0.7
|
dart_webrtc: 1.0.8
|
||||||
device_info_plus: ^3.2.3
|
device_info_plus: ^3.2.3
|
||||||
webrtc_interface: 1.0.7
|
webrtc_interface: 1.0.8
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|||||||
Reference in New Issue
Block a user