- 2个问题求教
1,录音按钮在连续快速点击的情况下的报错如何处理? 报错截图: [图片] 2,index和next 两个页面中,分别用了2种创建 innerAudioContext对象的方式,请问,一般用index的方法还是next的? 谢谢!
2019-07-04 - createInnerAudioContext离开页面销毁,再次进入页面不播放
detail页面,play按钮第一次可以播放, 第二次再进入,点击play按钮就不播放了? 在unload里销毁了播放对象。 [图片]
2019-07-04 - 下载音频文件不能播放?
[图片]
2019-06-26 - innerAudioContext 2个问题(重复调用和不能播放)
- 当前 Bug 的表现(可附上截图) 1,重复调用? 2, play不能播放? [图片] - 预期表现 - 复现路径 - 提供一个最简复现 Demo
2019-06-25 - innerAudioContext 2个问题(重复调用和不能播放)
- 当前 Bug 的表现 1,重复调用? 2, play不能播放? [图片] - 预期表现 - 复现路径 - 提供一个最简复现 Demo wxml文件: <view> <text >长按按钮录音,松开按钮是播放:</text> <view style='width:200rpx; height: 90rpx;border:1px solid #000; padding:20rpx;margin-top:20rpx;' bindtouchstart='newRead' bindtouchend='compareRead'>测试按钮</view> </view> ================================== js文件: const recorderManager = wx.getRecorderManager() //音频组件控制 const innerAudioContext = wx.createInnerAudioContext() Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, newRead: function (e) { this._record(); }, compareRead: function (e) { this._stop(); this._play(); }, //开始录音 _record: function () { // 手机震动 wx.vibrateShort({ }) // 录音文件 const options = { duration: 60000, //指定录音的时长,单位 ms sampleRate: 16000, //采样率 numberOfChannels: 1, //录音通道数 encodeBitRate: 96000, //编码码率 format: 'mp3', //音频格式,有效值 aac/mp3 frameSize: 50, //指定帧大小,单位 KB } //开始录音 recorderManager.start(options); recorderManager.onStart(() => { console.log("开始录音:") }); //错误回调 recorderManager.onError((res) => { console.log(res); }) }, //停止录音 _stop: function () { recorderManager.stop(); recorderManager.onStop((res) => { console.log("stop luyin!") this.setData({ tempFilePath: res.tempFilePath, }) }) }, _play: function () { innerAudioContext.autoplay = true innerAudioContext.src = this.data.tempFilePath, innerAudioContext.onPlay(() => { console.log('开始播放') }) innerAudioContext.onStop(() => { console.log('录音播放停止'); }) innerAudioContext.onEnded(() => { }) innerAudioContext.onError((res) => { console.log(res.errMsg) console.log(res.errCode) }) }, })
2019-06-24 - 下载图片路径提示错误
- 当前 Bug 的表现(可附上截图) - 预期表现 - 复现路径 - 提供一个最简复现 Demo [图片] 实际的图片路径是 : https://grainservice.club:8081/hyzy/uploadImage/wxbc686226ccc443f1.o6zAJsw3k3_I4jY0lYtqK1TqmM_c.sPaEiE6QlvX127e96f057517634e36bf5f9f4c135af3.png grainservice [图片] 而且,图片也显示出来了。 [图片] 就是不清楚红色报错是什么原因?
2019-06-16 - 测试号项目预览生成的二维码扫描提示“暂无体验权”?
wxid_wpm06buw5k5d**的接口测试号请问,测试号的项目,别的手机能测试吗?
2019-05-21 - 为什么预览获取不到数据?而真机调试可以。
测试接口: http://grainservice.club:8081/hyzy/getTeacherStudents/1 预览生成的二维码扫码,为什么获取不到数据?
2019-05-21 - 请问怎么设置下划线的颜色和宽度?
要实现在text标签内容:“When I want to strong something,I can say this”这句话下面加“5rpx, #74acbb”的下滑线。 .node{ color: #fcfcfc; } .node_item{ font-size: 34rpx; text-underline-position: 5rpx; text-decoration-color: rgb(116, 172, 187); text-decoration-line: 5px solid #74acbb; text-decoration:underline; line-height: 40rpx; } <view class='node'> <text class='node_item'>When I want to strong something,I can say this.</text> </view>
2019-05-18 - radio 怎么绑定参数
<radio value="{{item.sstudentId}}" data-id='{{item.id}}' data-status='{{item.stauts}}'/> 为什么bindchange获取不到 data-id, data-status绑定的值?
2019-04-23