2***@qq.com
2***@qq.com
  • 发布:2023-05-08 15:36
  • 更新:2023-12-01 16:59
  • 阅读:381

uniapp 拍摄视频回调失败

分类:HBuilderX

调用失败返回结果 chooseVideo:fail null ,errcode -99

ChooseVideo(){
let that = this
uni.chooseVideo({
maxDuration: 60,
sourceType: ['camera'],
success: function (res) {
console.log(res,'视频本地地址')
that.errmsg = res
that.videolist = []
that.videolist.push(res.tempFilePath)
that.uploadvideo()
},
fail:(err) =>{
console.log(err)
uni.showToast({
title: err+'api回调失败',
icon: 'none',
})

                }  
            });  
        },  

在其他安卓手机运行正常,在此手机 视频回调方式无效报错。

相机权限已经全开,此手机为防爆手机 设置的最大视频时常参数无效(maxDuration)

2023-05-08 15:36 负责人:无 分享
已邀请:
阿甄

阿甄

同三防机:

uni.chooseVideo({
sourceType: ['camera'],
success: (res) => {
console.log(res)
},
fail: (error) => {
console.log(error);
}
})

{
"errMsg": "chooseVideo:fail null",
"errCode": -99,
"code": -99
}

1***@163.com

1***@163.com

蹲一个解决办法。。。。同样的问题。
直接上传本地视频没问题,拍摄上传就不行。同样的错误。

  • 1***@qq.com

    请问解决了吗?我在小米手机正常,在开发用的手机上面,直接上传视频正常,直接拍摄视频{

    "errMsg": "chooseVideo:fail null",

    "errCode": -99,

    "code": -99

    }

    2023-08-23 14:28

matrix_zyh

matrix_zyh - The sooner you start to code. The longer the program will take.

蹲一个,一模一样的问题。。。

要回复问题请先登录注册