报告一个BUG
https://developers.weixin.qq.com/miniprogram/dev/devtools/sandbox.html
我在开发者工具使用video组件时,出现了莫名的报错信息,代码如下:
<!--index.wxml-->
<view class="container">
<video src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400"></video>
</view>
经过反复测试,发现只要添加src属性并传入视频链接时就会报错,但是视频是可以正常播放的。而且很奇怪的是,在真机上调试没有任何错误信息,也可以进行正常播放
错误提示如下:
VM1017:1 TypeError: Cannot read property 'elem' of undefined
at M (VM1034 WAService.js:2)
at VM1034 WAService.js:2
at VM1034 WAService.js:2
at n (VM1032 asdebug.js:1)
at e.exports. (VM1032 asdebug.js:1)
at VM1032 asdebug.js:1
at Array.forEach ()
at WebSocket._ws.onmessage (VM1032 asdebug.js:1)