提交 5e16ef78 编写于 作者: W wanganxp

video对象使用不同方式获取,增加测试例覆盖范围

上级 febdb369
......@@ -223,7 +223,8 @@
},
pause: function () {
console.log("pause");
this.videoContext?.pause();
(uni.getElementById("video") as UniVideoElement).pause(); //as写法测试。注意id不对时as会崩溃
// this.videoContext?.pause();
},
seek: function (pos : number) {
console.log("seek -> " + pos);
......@@ -239,7 +240,8 @@
},
stop: function () {
console.log("stop");
this.videoContext?.stop();
uni.getElementById<UniVideoElement>("video")?.stop(); //泛型写法测试
// this.videoContext?.stop();
},
sendDanmu: function (danmu : Danmu) {
console.log("sendDanmu -> " + danmu);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册