From 195ff38270d3b7919a31fe4d1cc9c42efa1d27b8 Mon Sep 17 00:00:00 2001 From: taohebin Date: Fri, 10 Nov 2023 14:10:15 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=9B=B4=E6=96=B0video=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e5fc6e13514228a3e938ae3e9b2a2bb0a1398e2a. --- pages/component/video/video.uvue | 44 ++++++++++++++++---------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/pages/component/video/video.uvue b/pages/component/video/video.uvue index 2c139c5b..30a3084c 100644 --- a/pages/component/video/video.uvue +++ b/pages/component/video/video.uvue @@ -288,7 +288,7 @@ this.pageGesture = !this.pageGesture; console.log("pageGesture -> " + this.pageGesture) }, - setDirection: function (direction : number) { + setDirection: function (direction: number) { this.direction = direction; console.log("direction -> " + this.direction) }, @@ -361,40 +361,40 @@ console.log("header -> " + this.header) }, // 事件 - onPlay: function (res : Event) { - console.log(res.type); + onPlay: function (res : any) { + console.log(JSON.stringify(res)); this.isPlaying = true; this.isPause = false; }, - onPause: function (res : Event) { - console.log(res.type); + onPause: function (res : any) { + console.log(JSON.stringify(res)); this.isPlaying = false; this.isPause = true; }, - onEnded: function (res : Event) { - console.log(res.type); + onEnded: function (res : any) { + console.log(JSON.stringify(res)); }, - onTimeUpdate: function (res : VideoTimeUpdateEvent) { - console.log(res.type + " -> " + JSON.stringify(res.detail)); + onTimeUpdate: function (_ : any) { + // console.log(JSON.stringify(res)); }, - onFullScreenChange: function (res : VideoFullScreenChangeEvent) { - console.log(res.type + " -> " + JSON.stringify(res.detail)); + onFullScreenChange: function (res : any) { + console.log(JSON.stringify(res)); this.isFullScreen = !this.isFullScreen; }, - onWaiting: function (res : Event) { - console.log(res.type); + onWaiting: function (res : any) { + console.log(JSON.stringify(res)); }, - onError: function (res : VideoErrorEvent) { - console.log(res.type + " -> " + JSON.stringify(res.detail)); + onError: function (res : any) { + console.log(JSON.stringify(res)); }, - onProgress: function (res : VideoProgressChangeEvent) { - console.log(res.type + " -> " + JSON.stringify(res.detail)); + onProgress: function (res : any) { + console.log(JSON.stringify(res)); }, - onFullScreenClick: function (res : VideoFullScreenClickEvent) { - console.log(res.type + " -> " + JSON.stringify(res.detail)); + onFullScreenClick: function (res : any) { + console.log(JSON.stringify(res)); }, - onControlsToggle: function (res : VideoControlsToggleEvent) { - console.log(res.type + " -> " + JSON.stringify(res.detail)); + onControlsToggle: function (res : any) { + console.log(JSON.stringify(res)); }, // 自动化测试 playTest: function () { @@ -424,4 +424,4 @@ width: 750rpx; height: 400rpx; } - \ No newline at end of file + -- GitLab