收藏
回答

用taro 引入萤石云小程序播放插件,真机调试报错?

<View className='video-box'>
  {token && (
    //@ts-ignore
    <ezplayer
      id={'ezplayer'}
      accessToken={token}
      url={`rtmp://open.ys7.com/${cameraDetail?.deviceSerial}/${cameraDetail?.channelNo}/live`}
      width={'100%'}
      height={'30%'}
      handleError={handleError}
    />
  )}
</View>

app.config.json
singComponents: {
"ezplayer": "plugin://ezplayer/ezplayer"
},
"plugins": {
  "ezplayer": {
    "version": "1.0.1",
    "provider": "wxf2b3a0262975d8c2"
  }
}
回答关注问题邀请回答
收藏
登录 后发表内容