From 07196f2ef735af37ab4827576e34a98b8a6741b6 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Fri, 8 Dec 2023 03:35:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E9=94=99=E8=AF=AF=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E8=B7=AF=E5=BE=84=E7=9A=84=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/video/video-format.uvue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/component/video/video-format.uvue b/pages/component/video/video-format.uvue index b4fc1691..ea77984f 100644 --- a/pages/component/video/video-format.uvue +++ b/pages/component/video/video-format.uvue @@ -58,7 +58,11 @@ { format: '本地m3u8', src: '/static/test-video/2minute-demo.m3u8' - } + }, + { + format: '错误路径', + src: 'https://www.dcloud.net.cn/errorpath.mp4' + }, ] as Array, notSupportFormats: [ { @@ -74,8 +78,9 @@ } }, methods: { - onError: function (_ : VideoErrorEvent) { + onError: function (e : VideoErrorEvent) { this.isError = true; + console.log(e.target?.getAttribute("id") + ":" + e.detail); } } } -- GitLab