在开发人脸识别功能时安卓端需要调用摄像头
由于uni.createCameraContent() 不能在APP端使用,故选择使用nvue里的live-pusher组件。
打包后使用该组件报错TypeError: e[t] is not a function
原因:打包 App 时没有勾选 manifest.json->App 模块权限配置->LivePusher(直播推流) 模块。
勾选后重新打包即可正常使用。
组件具体使用可参考:
- https://uniapp.dcloud.io/component/live-pusher?id=live-pusher
- https://blog.csdn.net/weixin_43236062/article/details/109065450
本文介绍了在开发uniapp人脸识别功能时,为何uni.createCameraContent()不可用,并详细阐述了如何通过nvue live-pusher组件实现摄像头调用。关键步骤在于确保在打包App时正确配置manifest.json中的LivePusher权限,解决TypeError。

8161

被折叠的 条评论
为什么被折叠?



