帅得被人砍
帅得被人砍
  • 发布:2021-08-03 14:52
  • 更新:2021-08-03 16:11
  • 阅读:1362

【报Bug】live-pusher 组件直播推流报错,本地调试可以推流,发布后报错不能推流

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 11.3.1 (20E241)

HBuilderX类型: 正式

HBuilderX版本号: 3.1.12

手机系统: Android

手机系统版本号: Android 9.0

手机厂商: 华为

手机机型: mate 20

页面类型: nvue

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

报错内容:
[JS Framework] Failed to execute the callback function:
TypeError: e[t] is not a function
reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: e[t] is not a function

app调用:
this.context = uni.createLivePusherContext("livePusher", this)

setTimeout(() => {
this.context.start({
success: (a) => {
console.log("livePusher.start:" + JSON.stringify(a))
}
})
}, 1000)

操作步骤:

报错内容:
[JS Framework] Failed to execute the callback function:
TypeError: e[t] is not a function
reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: e[t] is not a function

app调用:
this.context = uni.createLivePusherContext("livePusher", this)

setTimeout(() => {
this.context.start({
success: (a) => {
console.log("livePusher.start:" + JSON.stringify(a))
}
})
}, 1000)

预期结果:

不报错,可直接实现推流直播

实际结果:

报错报错报错!!!

报错内容:
[JS Framework] Failed to execute the callback function:
TypeError: e[t] is not a function
reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: e[t] is not a function

bug描述:

本地调试直播推流live-pusher 组件可以实现推流操作

发布打包后,手机安装后不能直播推流。
通过自定义基座调试:
报错内容:
[JS Framework] Failed to execute the callback function:
TypeError: e[t] is not a function
reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: e[t] is not a function

app调用:
this.context = uni.createLivePusherContext("livePusher", this)

setTimeout(() => {
this.context.start({
success: (a) => {
console.log("livePusher.start:" + JSON.stringify(a))
}
})
}, 1000)

2021-08-03 14:52 负责人:无 分享
已邀请:

最佳回复

帅得被人砍

帅得被人砍 (作者)

问题已解决:打包时缺少权限

https://uniapp.dcloud.net.cn/component/live-pusher

App平台:使用 <live-pusher/> 组件,打包 App 时必须勾选 manifest.json->App 模块权限配置->LivePusher(直播推流) 模块。

该问题目前已经被锁定, 无法添加新回复