const customParams = {
path: 'sub-packages/live-play/pages/live-list/index',
pid: 1,
}
const customParamsStr = encodeURIComponent(JSON.stringify(customParams));
wxApi.navigateTo({
url: `plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=${item.wxRoomId}&custom_params=${customParamsStr}`,
success: () => {
console.log('进入直播间成功');
},
fail: () => {
console.log('进入直播间失败')
}
});
以上代码进入直播间后看不到直播的画面也听不到声音,可以看到弹幕,