diff --git a/pages/component/video/video.uvue b/pages/component/video/video.uvue index fee0c513bdf18d5b2d8f5ac14068ceeb04e8fa0d..e61144ea12e850bcd19adf20c0beda9e33490a62 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; + }