提交 07196f2e 编写于 作者: W wanganxp

补充错误视频路径的测试

上级 39c8ec87
...@@ -58,7 +58,11 @@ ...@@ -58,7 +58,11 @@
{ {
format: '本地m3u8', format: '本地m3u8',
src: '/static/test-video/2minute-demo.m3u8' src: '/static/test-video/2minute-demo.m3u8'
} },
{
format: '错误路径',
src: 'https://www.dcloud.net.cn/errorpath.mp4'
},
] as Array<VideoFormat>, ] as Array<VideoFormat>,
notSupportFormats: [ notSupportFormats: [
{ {
...@@ -74,8 +78,9 @@ ...@@ -74,8 +78,9 @@
} }
}, },
methods: { methods: {
onError: function (_ : VideoErrorEvent) { onError: function (e : VideoErrorEvent) {
this.isError = true; this.isError = true;
console.log(e.target?.getAttribute("id") + ":" + e.detail);
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册