🐛 Optimize noise cancellation

This commit is contained in:
LittleSheep 2025-03-29 01:03:11 +08:00
parent 7c6f2cc4ab
commit 3585941ccb

@ -132,6 +132,7 @@ class ChatCallProvider extends ChangeNotifier {
void initRoom() {
initHardware();
final timeout = const Duration(seconds: 60);
_room = Room(
roomOptions: RoomOptions(
dynacast: true,
@ -158,6 +159,16 @@ class ChatCallProvider extends ChangeNotifier {
params: VideoParametersPresets.h1080_169,
),
),
connectOptions: ConnectOptions(
autoSubscribe: true,
timeouts: Timeouts(
connection: timeout,
debounce: timeout,
publish: timeout,
peerConnection: timeout,
iceRestart: timeout,
),
),
);
_listener = _room.createListener();
WakelockPlus.enable();