Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subpackage 功能支持 微信小程序 plugin ? #125

Open
Leridy opened this issue Mar 10, 2020 · 0 comments
Open

subpackage 功能支持 微信小程序 plugin ? #125

Leridy opened this issue Mar 10, 2020 · 0 comments

Comments

@Leridy
Copy link

Leridy commented Mar 10, 2020

以微信直播插件为例:

1.【直播组件】如何引入
版本限制:微信客户端版本 7.0.7 及以上(基础库版本 2.9.x 及以上支持同层渲染)可以观看直播及使用直播间的功能,低版本刚进入直播间时会提示用户升级微信客户端版本(低版本只能观看直播,无法使用直播间的功能)。

在分包内引入【直播组件】live-player-plugin 代码包,项目根目录的 app.json 引用,示例代码如下:

{
  "subpackages": [
    {
      "root": "packageA",
      "pages": [
        "pages/home/home"
      ],
      "plugins": {
        "live-player-plugin": {
          "version": "1.0.0", // 填写该直播组件最新版本号,微信开发者工具调试时可获取最新版本号
          "provider": "wx2b03c6e691cd7370" // 必须填该直播组件appid,该示例值即为直播组件appid
        }
      }
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant