{"errno":100,"errMsg":"compressVideo:fail:jsapi not supported 鸿蒙系统什么时候适配,报错了报错了
调用wx.compressVideo压缩视频报错,提示不明,请问什么原因?[图片] 测试用的视频文件是我用微信录制的一个2秒的MP4视频,可以正常播放
11-08为啥不考虑呢,一边白,也不报错什么的,怎么搞
小程序怎么判断微信是否有相机权限呢?小程序本身授权了相机权限,但是微信没有相机权限,这种情况怎么判断.....
09-19加q1412727078,帮你解决
CameraContext.stopRecord调用失败?iPhone14 录制第一段视频成功处理后,录制第二段视频100% 走fail
07-29加q1412727078,帮解决
微信小程序stopRecord()停止录制调用无反应- 当前 Bug 的表现(可附上截图) [代码]endVideo() {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]console.log([代码][代码]'停止录制'[代码][代码])[代码][代码] [代码][代码]this[代码][代码].CameraContext.stopRecord({[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]that.videoSrc=res.tempVideoPath;[代码][代码] [代码][代码]that.VideoContext = wx.createVideoContext([代码][代码]'answerVideo'[代码][代码], that);[代码][代码] that.VideoContext.play();[代码][代码] [代码][代码]that.recordIng = [代码][代码]'hide'[代码][代码];[代码][代码] [代码][代码]that.endRecord = [代码][代码]'show'[代码][代码];[代码][代码] [代码][代码]that.CameraContext=[代码][代码]null[代码][代码];[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail:[代码][代码]function[代码][代码](){[代码][代码] [代码][代码]console.log([代码][代码]'录制错误'[代码][代码])[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete:[代码][代码]function[代码][代码](){[代码][代码] [代码][代码]console.log([代码][代码]'调用结束'[代码][代码])[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码] - 预期表现 调用CameraContext.stopRecord()API执行其success回调函数 - 复现路径 ios端都有出现CameraContext.startRecord录制时长大于一分钟后调用CameraContext.stopRecord无反应 安卓端 - 提供一个最简复现 Demo
07-29加q1412727078,帮你解决
createCameraContext.stopRecord()有一定概率不生效,概率挺大?createCameraContext.stopRecord()不生效,success、fail、complete回调函数都不执行,不生效的概率还挺大,请官方看到回复一下,项目中出现这个问题,用户反应挺大,可以开始录制但是结束不了
07-29加q1412727078,帮你解决
camera组件,调用stopRecord,没有拿到success回调?小米10,使用camera组件,调用stopRecord没有成功回调,然后通过点击事件调用方法一直返回错误operateCamera:fail:is stopping[图片] startTimer: function () { let that = this; this.data.timer = setInterval(function () { that.data.time.second--; if (that.data.time.second === 1 && that.data.status.record === "recording") { that.stopRecord(); } that.setData({ time: that.data.time }) }, 1000) }, stopTimer: function () { clearInterval(this.data.timer); }, stratRecord: function () { let that = this; this.cameraContext.startRecord({ success: function (res) { console.log('开始录制') that.startTimer(); }, fail: function (res) { }, }) }, stopRecord: function () { let that = this; this.cameraContext.stopRecord({ success: function (res) { console.log('停止录制'); that.data.video = res.tempVideoPath; that.data.img = res.tempThumbPath; that.stopTimer(); that.data.status.record = 'success'; that.data.time.second = 5; that.setData({ status: that.data.status, video: that.data.video, img: that.data.img, time: that.data.time }) }, fail: function (res) { console.log(res); if(res.errMsg === "operateCamera:fail:is stopping"){ } else { that.stopTimer(); that.data.status.record === 'not'; that.data.time.second = 5; that.setData({ status: that.data.status, time: that.data.time }) } }, }) },
07-29加q1412727078,帮你解决
调用stopRecord报错operateCamera:fail:is not recording?https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/wx.createCameraContext.html 录制超过15秒的视频在调用 stopRecord时 就会 报错 operateCamera:fail:is not recording,这是什么原因 [图片] [图片]
07-29加q1412727078,帮你解决
camera wx.stopRecord拿不到返回的结果成功失败都木有?代码是官方的案例代码,没改动camera wx.stopRecord拿不到返回的结果成功失败都木有?代码是官方的案例代码,没改动,好多安卓各种问题,有的start,有的stop有的还闪退!!!!!! 手机型号看右边图 是锤子手机 代码是官方的例子 Page({ onLoad() { this.ctx = wx.createCameraContext() }, takePhoto() { console.log(0) this.ctx.takePhoto({ quality: 'high', success: (res) => { this.setData({ src: res.tempImagePath }) } }) }, startRecord() { console.log(1) this.ctx.startRecord({ success: (res) => { console.log('startRecord') } }) }, stopRecord() { console.log(2); this.ctx.stopRecord({ success: (res) => { console.log(28,res) this.setData({ src: res.tempThumbPath, videoSrc: res.tempVideoPath },()=>{ console.log(778) }) } }) }, error(e) { console.log(e.detail) } }) [图片]
07-29加q1412727078,帮你解决
结束录制CameraContext.stopRecord无效怎么办?为啥IOS端二次调用结束视频录制CameraContext.stopRecord API无效,无任何回调,Android端正常 苹果手机不行详情描述看下图注释 [图片]
07-29https://developers.weixin.qq.com/s/zNrN6KmN7SSf 这是代码段
camera.stopRecord失败?好多型号手机报错啊,没人关吗{'e':'{"errMsg":"operateCamera:fail:is stopping"}','phone':'13409255008','ctx':'{"webviewId":-1106671058,"pluginId":"","_isRecording":false,"_timer":1518,"_videoTaken":null}','deviceinfo':'{"deviceAbi":"arm64-v8a","benchmarkLevel":33,"cpuType":"Qualcomm Technologies, Inc SM8350","system":"Android 11","memorySize":7327,"abi":"arm64-v8a","model":"V2154A","brand":"vivo","platform":"android"}'} {'e':'{"errMsg":"operateCamera:fail:is stopping"}','phone':'15714291396','ctx':'{"webviewId":516568090,"pluginId":"","_isRecording":false,"_timer":1685,"_videoTaken":null}',''deviceinfo':'{"deviceAbi":"arm64-v8a","benchmarkLevel":22,"cpuType":"Qualcomm Technologies, Inc SDM765G 5G","system":"Android 13","memorySize":7395,"abi":"arm64-v8a","model":"PEGM00","brand":"OPPO","platform":"android"}'} {'e':'{"errMsg":"operateCamera:fail:is not recording"}','phone':'15210731567','ctx':'{"webviewId":-112256225,"pluginId":"","_isRecording":false,"_timer":230}','deviceinfo':'{"deviceAbi":"arm64-v8a","benchmarkLevel":23,"cpuType":"SM7450","system":"Android 14","memorySize":15300,"abi":"arm64-v8a","model":"REA-AN00","brand":"HONOR","platform":"android"}'}
07-17