diff --git a/lib/src/core/room.dart b/lib/src/core/room.dart index 614eb6726..81c37d827 100644 --- a/lib/src/core/room.dart +++ b/lib/src/core/room.dart @@ -1,6 +1,7 @@ import 'dart:async'; import 'package:collection/collection.dart'; +import 'package:flutter/foundation.dart'; import 'package:livekit_client/src/support/app_state.dart'; import 'package:meta/meta.dart'; @@ -95,7 +96,7 @@ class Room extends DisposableChangeNotifier with EventsEmittable { _engineListener = this.engine.createListener(); _setUpEngineListeners(); - if (!lkPlatformIsTest()) { + if (!kIsWeb && !lkPlatformIsTest()) { _appCloseSubscription = AppStateListener.instance.onWindowShouldClose.stream.listen((event) { disconnect(); diff --git a/pubspec.lock b/pubspec.lock index 94b3c36e2..9aaf913c2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -126,7 +126,7 @@ packages: name: dart_webrtc url: "https://pub.dartlang.org" source: hosted - version: "1.0.11" + version: "1.0.12" dbus: dependency: transitive description: @@ -204,7 +204,7 @@ packages: name: flutter_webrtc url: "https://pub.dartlang.org" source: hosted - version: "0.9.17" + version: "0.9.18" flutter_window_close: dependency: "direct main" description: @@ -373,6 +373,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "3.1.0" + platform_detect: + dependency: transitive + description: + name: platform_detect + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.7" plugin_platform_interface: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index fa265be16..6c6534395 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -23,9 +23,9 @@ dependencies: uuid: ^3.0.6 synchronized: ^3.0.0+3 protobuf: ^2.1.0 - flutter_webrtc: 0.9.17 + flutter_webrtc: 0.9.18 flutter_window_close: ^0.2.2 - dart_webrtc: 1.0.11 + dart_webrtc: 1.0.12 device_info_plus: ^8.0.0 webrtc_interface: 1.0.10