From f8e4243989d003c421d67b5f705d2c12dc6e3a5a Mon Sep 17 00:00:00 2001 From: Predidit <34627277+Predidit@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:06:25 +0800 Subject: [PATCH] fix missing video url decode on linux --- .../webview_linux_controller_impel.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/pages/webview/webview_controller_impel/webview_linux_controller_impel.dart b/lib/pages/webview/webview_controller_impel/webview_linux_controller_impel.dart index e5a23ab6..dadf4db7 100644 --- a/lib/pages/webview/webview_controller_impel/webview_linux_controller_impel.dart +++ b/lib/pages/webview/webview_controller_impel/webview_linux_controller_impel.dart @@ -112,15 +112,16 @@ class WebviewLinuxItemControllerImpel extends WebviewItemController { videoPageController.logLines .add('Callback received: ${Uri.decodeFull(messageItem)}'); if (messageItem.contains('http') && !isVideoSourceLoaded) { - debugPrint('Loading video source ${Uri.decodeFull(messageItem)}'); + String videoUrl = Uri.decodeFull(messageItem); + debugPrint('Loading video source $videoUrl'); videoPageController.logLines - .add('Loading video source ${Uri.decodeFull(messageItem)}'); + .add('Loading video source $videoUrl'); isIframeLoaded = true; isVideoSourceLoaded = true; videoPageController.loading = false; if (videoPageController.currentPlugin.useNativePlayer) { unloadPage(); - playerController.videoUrl = messageItem; + playerController.videoUrl = videoUrl; playerController.init(offset: offset); } }