fix: 18883 功能缺陷-【uat】 进入视频详情,点击全屏按钮,进入全屏,按住进度条不放,会自动消失,android不消失,看图
Showing
1 changed file
with
10 additions
and
0 deletions
| @@ -142,6 +142,16 @@ export struct PlayerFullScreenView { | @@ -142,6 +142,16 @@ export struct PlayerFullScreenView { | ||
| 142 | .margin({ left: 16, right: 8 }) | 142 | .margin({ left: 16, right: 8 }) |
| 143 | 143 | ||
| 144 | PlayerProgressFullScreenView({ playerController: this.playerController }).layoutWeight(1) | 144 | PlayerProgressFullScreenView({ playerController: this.playerController }).layoutWeight(1) |
| 145 | + .onTouch((event?: TouchEvent) => { | ||
| 146 | + if (event) { | ||
| 147 | + if (event.type === TouchType.Down) { | ||
| 148 | + clearInterval(this.timer) | ||
| 149 | + } | ||
| 150 | + if (event.type === TouchType.Up) { | ||
| 151 | + this.restartTimer(); | ||
| 152 | + } | ||
| 153 | + } | ||
| 154 | + }) | ||
| 145 | 155 | ||
| 146 | Text(DateTimeUtils.secondToTime(this.videoDuration)) | 156 | Text(DateTimeUtils.secondToTime(this.videoDuration)) |
| 147 | .fontSize(12) | 157 | .fontSize(12) |
-
Please register or login to post a comment