From e6ea3cd97e55438e05c344731093c253b30f6111 Mon Sep 17 00:00:00 2001 From: guangda Date: Mon, 10 Nov 2025 16:11:26 +0800 Subject: [PATCH] fix bug --- features/videoDetail/src/main/ets/view/VideoDetail.ets | 2 ++ features/videoDetail/src/main/ets/view/VideoPlayer.ets | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/features/videoDetail/src/main/ets/view/VideoDetail.ets b/features/videoDetail/src/main/ets/view/VideoDetail.ets index f7022b8..368f3d6 100644 --- a/features/videoDetail/src/main/ets/view/VideoDetail.ets +++ b/features/videoDetail/src/main/ets/view/VideoDetail.ets @@ -246,6 +246,7 @@ export struct VideoDetail { } } }) + // [Start key_event_action] .onKeyEvent((event?: KeyEvent) => { //If the key type is pressed, the subsequent code will not be executed, and the specific key logic will be executed when released. if (!event || event.type !== KeyType.Down) { @@ -268,5 +269,6 @@ export struct VideoDetail { this.avPlayerUtil!.rewind(); } }) + // [End key_event_action] } } \ No newline at end of file diff --git a/features/videoDetail/src/main/ets/view/VideoPlayer.ets b/features/videoDetail/src/main/ets/view/VideoPlayer.ets index 7fa2e8a..8ba7808 100644 --- a/features/videoDetail/src/main/ets/view/VideoPlayer.ets +++ b/features/videoDetail/src/main/ets/view/VideoPlayer.ets @@ -112,13 +112,13 @@ export struct VideoPlayer { .aspectRatio(1.78) // [EndExclude stack_aligncontent] // [EndExclude stack_isfullscreen] - // [EndExclude click_interaction] } .justifyContent(FlexAlign.Center) .height(this.isHalfFolded ? this.creaseRegion[0] : (this.isFullScreen ? '100%' : 'auto')) .width('100%') // [StartExclude stack_isfullscreen] + // [EndExclude click_interaction] } .width('100%') .onClick(() => { -- Gitee