基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
add comments for webview_apple_controller
Predidit0e99712aae13
diff --git a/lib/pages/webview/webview_controller_impel/webview_apple_controller_impel.dart b/lib/pages/webview/webview_controller_impel/webview_apple_controller_impel.dartindex f5da70eb..5c12bd0f 100644--- a/lib/pages/webview/webview_controller_impel/webview_apple_controller_impel.dart+++ b/lib/pages/webview/webview_controller_impel/webview_apple_controller_impel.dart@@ -4,6 +4,10 @@ import 'package:kazumi/utils/utils.dart';import 'package:kazumi/pages/webview/webview_controller.dart';import 'package:webview_flutter/webview_flutter.dart';+// The following code using almost the same code from lib/pages/webview/webview_controller.dart.+// It's a workaround for webview_flutter lib (It behaves differently on macOS/iOS and Android).+// 1. We need onPageFinished rather than onUrlChanged to execute JavaScript code when document created.+// 2. We need encode all url received from JavaScript channel to avoid crash.class WebviewAppleItemControllerImpelextends WebviewItemController<WebViewController> {// workaround for webview_flutter lib.diff --git a/lib/utils/utils.dart b/lib/utils/utils.dartindex e90966b4..3864b81c 100644--- a/lib/utils/utils.dart+++ b/lib/utils/utils.dart@@ -622,7 +622,7 @@ class Utils {return 'AVPlayer';}if (Platform.isMacOS && haEnable) {- return 'Video Toolbox';+ return 'VT';}if (Platform.isAndroid && haEnable) {return 'ExoPlayer';