From 8dcecf437d4ab587b2453e3f338fafae8c2c5c39 Mon Sep 17 00:00:00 2001 From: shijie Date: Thu, 9 Jan 2025 08:24:14 +0000 Subject: [PATCH 1/5] =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shijie --- .../ohos/entry/src/main/ets/entryability/EntryAbility.ets | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets index 96eb97313..6551b8119 100644 --- a/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -13,6 +13,9 @@ * limitations under the License. */ + + + import { FlutterAbility } from '@ohos/flutter_ohos' import { GeneratedPluginRegistrant } from '../plugins/GeneratedPluginRegistrant'; import FlutterEngine from '@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine'; -- Gitee From 982bf91adaace89be16e26077b8e3ca22acd4e26 Mon Sep 17 00:00:00 2001 From: shijie Date: Thu, 9 Jan 2025 08:24:35 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=A4=8D=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shijie --- .../ohos/entry/src/main/ets/entryability/EntryAbility.ets | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets index 6551b8119..96eb97313 100644 --- a/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -13,9 +13,6 @@ * limitations under the License. */ - - - import { FlutterAbility } from '@ohos/flutter_ohos' import { GeneratedPluginRegistrant } from '../plugins/GeneratedPluginRegistrant'; import FlutterEngine from '@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine'; -- Gitee From 3be2e5a229a06f84997cf4a09758f339e2e23be8 Mon Sep 17 00:00:00 2001 From: shijie Date: Thu, 9 Jan 2025 08:25:09 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shijie --- .../ohos/entry/src/main/ets/entryability/EntryAbility.ets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets index 96eb97313..01675365d 100644 --- a/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -13,6 +13,8 @@ * limitations under the License. */ + + import { FlutterAbility } from '@ohos/flutter_ohos' import { GeneratedPluginRegistrant } from '../plugins/GeneratedPluginRegistrant'; import FlutterEngine from '@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine'; -- Gitee From bf3bc369c7ddbfc6767d9ba23c023071ad618981 Mon Sep 17 00:00:00 2001 From: shijie Date: Wed, 22 Jan 2025 09:19:35 +0800 Subject: [PATCH 4/5] =?UTF-8?q?webview=5Fflutter=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E7=9A=84=E9=83=A8=E5=88=86=E7=BD=91=E9=A1=B5=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=88=B0=E4=B8=8A=E4=B8=80=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shijie --- .../webview_flutter/WebViewHostApiImpl.ets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets b/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets index 14bfc1a84..216d9d0eb 100644 --- a/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets +++ b/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets @@ -338,6 +338,11 @@ export class WebViewPlatformView extends PlatformView { if(request.getRequestUrl() == 'loaded:///'){ return true; } + + if (this.webViewClint && request.isRequestGesture()) { + return this.webViewClint.shouldOverrideUrlLoading(this, request); + } + return false; } -- Gitee From 7a2cba2f300b4e2e5ba9c789151170d492ba5a2c Mon Sep 17 00:00:00 2001 From: shijie Date: Wed, 22 Jan 2025 03:48:22 +0000 Subject: [PATCH 5/5] =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=9B=9E=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shijie --- .../ohos/entry/src/main/ets/entryability/EntryAbility.ets | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets index 01675365d..96eb97313 100644 --- a/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/packages/video_player/video_player_ohos/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -13,8 +13,6 @@ * limitations under the License. */ - - import { FlutterAbility } from '@ohos/flutter_ohos' import { GeneratedPluginRegistrant } from '../plugins/GeneratedPluginRegistrant'; import FlutterEngine from '@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine'; -- Gitee