From e6698bfa59c0e992cc7cea0330091503d70aaff5 Mon Sep 17 00:00:00 2001 From: Cowork 3P Date: Thu, 4 Jun 2026 16:27:08 +0800 Subject: [PATCH] Simplify RTCVideoView constraints and disable adaptive resolution by default --- lib/features/desktop/desktop_view.dart | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/lib/features/desktop/desktop_view.dart b/lib/features/desktop/desktop_view.dart index c3af83d9..3598e1c5 100644 --- a/lib/features/desktop/desktop_view.dart +++ b/lib/features/desktop/desktop_view.dart @@ -47,7 +47,7 @@ class _DesktopViewState extends State { ); bool _useGpu = false; - bool _adaptiveResolution = true; + bool _adaptiveResolution = false; bool _showAdvancedOptions = false; bool _showControlPanel = true; String _connectionState = 'disconnected'; @@ -514,18 +514,10 @@ class _DesktopViewState extends State { _inputHandler!.handleScroll(event); } }, - child: SizedBox.expand( - child: FittedBox( - fit: BoxFit.fill, - child: SizedBox( - width: _remoteDesktopSize.width > 0 ? _remoteDesktopSize.width : 1280, - height: _remoteDesktopSize.height > 0 ? _remoteDesktopSize.height : 720, - child: RTCVideoView( - _localRenderer, - objectFit: RTCVideoViewObjectFit.RTCVideoViewObjectFitContain, - ), - ), - ), + child: RTCVideoView( + _localRenderer, + objectFit: RTCVideoViewObjectFit.RTCVideoViewObjectFitContain, + filterQuality: FilterQuality.medium, ), ), ),