使用uniapp开发
一、唤起的代码:
uni.navigateTo({
url: `plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=${roomId}`
})
二、报错信息:
[插件 wx2b03c6e691cd7370] provider:wx2b03c6e691cd7370, version:, 插件版本不存在,the version of the app/plugin is not exist
插件文档: https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wx2b03c6e691cd7370&token=&lang=zh_CN(env: macOS,mp,1.06.2301160; lib: 2.30.4)
三、pages.json里的配置
"plugins": {
"live-player-plugin": {
"version": "1.3.5",
"provider": "wx2b03c6e691cd7370"
}
},
解决了
如是用的uniapp开发的,需要在manifest.json里加
"mp-weixin" : { /* 小程序特有相关 */ "usingComponents" : true, "plugins": { "live-player-plugin": { "version": "1.3.5", "provider": "wx2b03c6e691cd7370" } }, }
https://blog.51cto.com/u_12286670/5379849