diff --git a/features/videoDetail/src/main/ets/view/VideoDetail.ets b/features/videoDetail/src/main/ets/view/VideoDetail.ets index f7022b84bc864c118e22a9acab9363cfe7ef883c..368f3d6de43fb1f235fcf54f7e8b33181dbd875a 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 7fa2e8a0abdc206eb60860139004bca352789b5e..8ba78081312c95b6ee0f837aac257d60a44ade9a 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(() => {