chore: Make timeouts configurable. (#191)

This commit is contained in:
CloudWebRTC
2022-10-18 15:52:24 +08:00
committed by GitHub
parent 257f2129fe
commit 7acfb3faac
5 changed files with 43 additions and 22 deletions
+4
View File
@@ -1,3 +1,4 @@
import 'constants.dart';
import 'core/room.dart';
import 'publication/remote.dart';
import 'track/local/audio.dart';
@@ -38,10 +39,13 @@ class ConnectOptions {
/// The protocol version to be used. Usually this doesn't need to be modified.
final ProtocolVersion protocolVersion;
final Timeouts timeouts;
const ConnectOptions({
this.autoSubscribe = true,
this.rtcConfiguration = const RTCConfiguration(),
this.protocolVersion = ProtocolVersion.v8,
this.timeouts = Timeouts.defaultTimeouts,
});
}