敏感词
敏感词
  • 发布:2024-06-17 15:37
  • 更新:2024-06-17 15:46
  • 阅读:45

【报Bug】你好,在vue3项目中使用推流 uni.createLivePlayerContext(livePlayerId, this) this应该传什么参数?

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 4.19

手机系统: Android

手机系统版本号: Android 14

手机厂商: 华为

手机机型: 华为

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

onReady(()=> {
livePusher.value = uni.createLivePusherContext('livePusher', this);
})

预期结果:

111

实际结果:

111

bug描述:

你好请问在vue3项目中使用推流组件live-pusher, uni.createLivePlayerContext(livePlayerId, this) this应该传什么参数?

2024-06-17 15:37 负责人:无 分享
已邀请:
i锦鲤

i锦鲤 - 丨接单丨10+年开发经验丨Tel_15275181688

传gutCurrentInstance()

  • 敏感词 (作者)

    是getCurrentInstance()吗?我试了还是报错的

    报错:Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'meta')


    livePusher.value = uni.createLivePusherContext("livePusher", (0, import_vue.getCurrentInstance)());

    2024-06-17 15:44

敏感词

敏感词 (作者) - 我知道你的敏感词是什么啊

报错
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'meta')
at
at Object.createLivePusherContext ()
at VM24 index.js:114
at sn ()
at Rn ()
at Pa.l.weh.l.weh ()
at Object.wn [as invokeArrayFns] ()
at I ()
at Object.<anonymous> ()

i锦鲤

i锦鲤 - 丨接单丨10+年开发经验丨Tel_15275181688

你怎么写的?截个图看看

  • 敏感词 (作者)

    我传了图片你看一下

    2024-06-17 15:47

  • 敏感词 (作者)

    怎么样了老大,截图有帮助吗?要不我再截详细点。。

    2024-06-17 16:29

敏感词

敏感词 (作者) - 我知道你的敏感词是什么啊

1111

要回复问题请先登录注册