From 300152b844f27dbc448c3892f5e323d22adb2845 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Tue, 21 May 2024 18:34:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0video=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/video/video.uvue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pages/component/video/video.uvue b/pages/component/video/video.uvue index fee0c513..e61144ea 100644 --- a/pages/component/video/video.uvue +++ b/pages/component/video/video.uvue @@ -12,6 +12,7 @@ @fullscreenclick="onFullScreenClick" @controlstoggle="onControlsToggle" @fullscreenchange="onFullScreenChange"> + @@ -178,7 +179,7 @@ danmuBtn: false, enableDanmu: true, pageGesture: false, - direction: -90, + direction: -1, _direction: 0, requestFullScreenOptions: { direction: -90 @@ -412,6 +413,9 @@ onControlsToggle: function (res : UniVideoControlsToggleEvent) { console.log(res.type + " -> " + JSON.stringify(res.detail)); }, + onSrcInputConfirm(event : UniInputConfirmEvent) { + this.src = event.detail.value; + }, // 自动化测试 downloadSource() { uni.downloadFile({ @@ -434,4 +438,10 @@ width: 100%; height: 200px; } + + .input { + height: 40px; + background: #FFF; + margin: 5px 0; + } -- GitLab