那么如何安全的传递敏感值(比如用户信息)给网页呢?
web-view 参数为什么会丢失?小程序里用 web-view 访问某个网页时,传递参数进去绝大部分是无效的,会丢失参数,很偶尔会传得过去。 怎么解决?网上什么加密,合并为一个参数等方法都试了,还是不行。。
2021-03-20我也遇到这个问题
canvas绘图不随页面滑动而滑动- 需求的场景描述(希望解决的问题) 调用wxechart.js插件,汇至的图表无法随着页面的滑动而滑动,影响页面布局,如下图,饼状图位置固定,而页面其他元素都是以随着页面的滑动而滑动 [图片]
2021-03-18+1
map组件的moveAlong方法不能使地图随着marker一起移动吗?现在是如果我画的轨迹线没有在当前屏幕展示,需要拖动或缩放后才能看到整个移动。 希望可以随着marker一起移动 [图片]
2021-03-05哥,你弄错了,canvas2D是新接口,仔细看wx.canvasToTempFilePath()接口说明,填入的参数不使用canvasId而是用canvas,且getContext()接口返回的不是canvasContext而是renderingContext
wx.canvasToTempFilePath()导出图片无效?急急急![图片] [图片] [图片][图片]
2021-02-23canvas文档是真的不行,不写清楚,按着文档来又报错
canvas接口strokeStyle is not a function?使用CanvasContext.strokeStyle替代废弃接口CanvasContext.setStrokeStyle时报以下错误,官方说两个接口的用法一样而且使用的代码就是官方的例子 用的CanvasContext.lineWidth 和CanvasContext.lineCap 一样报错 [图片] 以下是代码片段 [代码]<canvas canvas-id=[代码][代码]"myCanvas"[代码][代码]></canvas>[代码][代码]const ctx = wx.createCanvasContext([代码][代码]'myCanvas'[代码][代码])[代码][代码]ctx.strokeStyle([代码][代码]'red'[代码][代码])[代码][代码]ctx.strokeRect(10, 10, 150, 75)[代码][代码]ctx.draw()[代码]求解答!!!!!
2021-02-23你好楼主,问题解决了吗,这小程序坑死我了
RecorderManager.onError报错是啥意思啊?res.errMsg内容是operateRecorder:fail:system permission denied,这是为什么啊,我start都成功调用了,开始录音了,调用stop的时候抛出这个异常,导致录音没法终止。 而且RecorderManager.onError 这个接口抛出的异常种类实在是太多了,能不能在文档里给一个列表,每种异常都是什么意思,该怎么避免 从这个接口已经获得过好多种异常信息了,有好几种都不知道是什么意思、怎么避免,有的时候fail to start 还有两种异常信息,一种是errType 6的,一种是operateRecorder:fail:start record fail。就不能统一一下吗,同一个类型的信息谁知道还有多少种变种,都不好统一处理 [图片]
2021-01-25有人吗,官方呢
录音报错start record fail和audioQueue start failiphoneX真机测试下直接走:onError() 注意:不是 iphoneXR 也不是 IphoneXS 而是 iPhoneX onError:errCode:-66681 报错operateRecorder:fail:start record fail 和 audioQueue start fail 请在官方文档上给出这些错误的原因,真的很难顶!! 附上代码: const app = getApp() // 录音配置 const recordOptions = { duration: 60000, numberOfChannels: 1, sampleRate: 16000, encodeBitRate: 96000, format: 'mp3', frameSize: 50, audioSource:'auto' // 设置录音输入源 auto } Page({ data: { recorderManager:{}, player:{}, recordList:[] }, // 开始接触 touchstart(){ wx.vibrateShort({ type:'heavy', }) this.data.recorderManager.start(recordOptions) }, touchmove(e){ console.log(e) }, touchend(e){ console.log(111) this.data.recorderManager.stop() }, touchcancel(){ }, disposeRecord(){ this.data.recorderManager.onStart(() => { console.log('recorder start') }) this.data.recorderManager.onPause(() => { console.log('recorder pause') }) this.data.recorderManager.onStop((res) => { console.log('监听到录音结束') console.log('recorder stop', res) const { tempFilePath, duration } = res console.log(tempFilePath,duration) this.data.recordList.push(res) this.setData({ recordList:this.data.recordList }) }) this.data.recorderManager.onFrameRecorded((res) => { const { frameBuffer } = res console.log('frameBuffer.byteLength', frameBuffer.byteLength) }); this.data.recorderManager.onError((res)=>{ console.log(res) // errcode -66681 // audioQueue start fail wx.showToast({ icon:'info', title: '录音失败'+res.errMsg, duration: 1500 }) }) }, playOrPlause(e){ console.log(e) this.data.player.stop() this.data.player.src = e.target.dataset.item.tempFilePath this.data.player.play() }, disposeVoice(){ // play voice this.data.player.onPlay(() => { console.log('play voice') wx.vibrateShort(); }); this.data.player.onStop(() => { console.log('stop voice') }) this.data.player.onEnded(() => { console.log('end voice') }) }, onLoad() { this.data.recorderManager = wx.getRecorderManager() this.disposeRecord() this.data.player = wx.createInnerAudioContext() this.disposeVoice() }, })
2021-01-23你玩什么?
我已成年也验证过了却等不上去?只能玩1.5小时
2021-01-23const app = getApp() // 录音配置 const recordOptions = { duration: 60000, numberOfChannels: 1, sampleRate: 16000, encodeBitRate: 96000, format: 'mp3', frameSize: 50, audioSource:'auto' // 设置录音输入源 auto } Page({ data: { recorderManager:{}, player:{}, recordList:[] }, // 开始接触 touchstart(){ wx.vibrateShort({ type:'heavy', }) this.data.recorderManager.start(recordOptions) }, touchmove(e){ console.log(e) }, touchend(e){ console.log(111) this.data.recorderManager.stop() }, touchcancel(){ }, disposeRecord(){ this.data.recorderManager.onStart(() => { console.log('recorder start') }) this.data.recorderManager.onPause(() => { console.log('recorder pause') }) this.data.recorderManager.onStop((res) => { console.log('监听到录音结束') console.log('recorder stop', res) const { tempFilePath, duration } = res console.log(tempFilePath,duration) this.data.recordList.push(res) this.setData({ recordList:this.data.recordList }) }) this.data.recorderManager.onFrameRecorded((res) => { const { frameBuffer } = res console.log('frameBuffer.byteLength', frameBuffer.byteLength) }); this.data.recorderManager.onError((res)=>{ console.log(res) // errcode -66681 // audioQueue start fail wx.showToast({ icon:'info', title: '录音失败'+res.errMsg, duration: 1500 }) }) }, playOrPause(e){ console.log(e) this.data.player.stop() this.data.player.src = e.target.dataset.item.tempFilePath this.data.player.play() }, disposeVoice(){ // play voice this.data.player.onPlay(() => { console.log('play voice') wx.vibrateShort(); }); this.data.player.onStop(() => { console.log('stop voice') }) this.data.player.onEnded(() => { console.log('end voice') }) }, onLoad() { this.data.recorderManager = wx.getRecorderManager() this.disposeRecord() this.data.player = wx.createInnerAudioContext() this.disposeVoice() }, })
iphoneX录音失败operateRecorder:fail:start record fail?iphoneX录音失败直接走onError,参数res的errCode:-66681 然后报错operateRecorder:fail:start record fail和audioQueue start fail 代码片段:https://developers.weixin.qq.com/s/qxZGUvmQ7Hnr
2021-01-21请问问题解决了么?我也出现了同样的问题
微信录音报 operateRecorder:fail:start record fail?微信录音报 operateRecorder:fail:start record fail 怎么才能继续使用录音
2021-01-20