安装和初始化
前提条件
步骤1:引入 SDK
npm install @polyv/live-watch-miniprogram-sdk --saveimport { createWatchCore } from '@polyv/live-watch-miniprogram-sdk';步骤2:创建核心实例
import { createWatchCore } from '@polyv/live-watch-miniprogram-sdk';
const watchCore = createWatchCore({
channelId: 'xxxxx', // 传入观看页的频道号
});步骤3:安装核心实例
步骤4:授权及连接聊天室
页面流程图
Last updated
