uniapp的app端使用ezuikit.js实现 app端查看监控,求问怎么实现,现在ezuikit.js文档只有安卓,ios版本 H5版本,使用ezuikit.js 的script引入方式报:
[JS Framework] Failed to execute the callback function:
15:21:22.916 TypeError: _ezuikit.default.EZUIPlayer is not a constructor
15:21:23.010 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: _ezuikit.default.EZUIPlayer is not a constructor
ReferenceError: EZUIKit is not defined
代码:import EZUIKit from '../../static/js/ezuikit.js'
var player = new EZUIKit.EZUIPlayer({
id: 'myPlayer',
url: url,
autoplay: true,
accessToken: this.accessToken,
decoderPath: 'static/js/',
width: 600,
height: 400,
});
console.log(player)
player.play();
求问有什么解决办法
c***@163.com (作者)
我这边也没有确切的解决办法,要么找安卓和ios给你写个插件,要么上插件市场找一个
2021-12-30 10:24
1***@163.com
要么就直接调用萤石云api使用video标签做视频监控,要么就只能去找插件
http://open.ys7.com/doc/zh/book/4.x/android-sdk.html
2022-04-12 11:19