x***@163.com
x***@163.com
  • 发布:2019-09-11 11:32
  • 更新:2019-09-24 16:12
  • 阅读:1610

【报Bug】录音结束,获取录音文件临时地址出错:Attempted to assign to readonly property.

分类:uni-app

详细问题描述

录音结束,获取录音文件临时地址出错:Attempted to assign to readonly property.

提示:不管这些错误提示;继续操作,是可以上传音频文件的!?这算不算bug?

[内容]

重现步骤

recorderManager.onStop(function (res) {  
    console.log(res); // 已出错  
    console.log('recorder stop' + JSON.stringify(res));  
    self.voicePath = res.tempFilePath;  
});

录音完,打印结果(临时录音地址)出错。

IDE运行环境说明

[HBuilderX 2.2.1]

[Win7, 64bit]

uni-app运行环境说明

[手机运行测试app端]

[手机:Android 7.0, 华为STA-TL10]

[项目是HBuilderX创建的]

[自定义组件模式]

附件

[可重现代码片段]

recorderManager.onStop(function (res) {  
    console.log(res); // 已出错  
    console.log('recorder stop' + JSON.stringify(res));  
    self.voicePath = res.tempFilePath;  
});
10:54:58.014 _doc/uniapp_temp_1568170421732/recorder/1568170436353.mp3 at pages\msg\chat.vue:493  
10:54:58.034 thirdScriptError  
10:54:58.054 Attempted to assign to readonly property.;at recorderManager.onStop callback function  
10:54:58.074 recordEnd

联系方式

[QQ] 80893510

2019-09-11 11:32 负责人:无 分享
已邀请:
我是好人

我是好人

算是bug

x***@163.com

x***@163.com (作者) - 网络无垠,技术无界,知识无价,生命无悔

另提示:选择图片上传正常,没有问题。

x***@163.com

x***@163.com (作者) - 网络无垠,技术无界,知识无价,生命无悔

另提示:不管这些错误提示;
继续操作,是可以上传音频文件的!?
这算不算bug?

x***@163.com

x***@163.com (作者) - 网络无垠,技术无界,知识无价,生命无悔

怎么没有官方正面回复??

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