title: Taro.openChannelsLive(option)

sidebar_label: openChannelsLive

打开视频号直播

支持情况:openChannelsLive - 图1 openChannelsLive - 图2 openChannelsLive - 图3

参考文档

类型

  1. (option?: Option) => Promise<TaroGeneral.CallbackResult>

参数

参数 类型
option Option

Option

参数 类型 必填 说明
finderUserName string 视频号 id,以“sph”开头的id,可在视频号助手获取
feedId string 直播 feedId,通过 getChannelsLiveInfo 接口获取
nonceId string 直播 nonceId,通过 getChannelsLiveInfo 接口获取
complete (res: TaroGeneral.CallbackResult) => void 接口调用结束的回调函数(调用成功、失败都会执行)
fail (res: TaroGeneral.CallbackResult) => void 接口调用失败的回调函数
success (result: TaroGeneral.CallbackResult) => void 接口调用成功的回调函数