xiangyuecn / Recorder

html5 js 录音 mp3 wav ogg webm amr g711a g711u 格式,支持pc和Android、iOS部分浏览器、Hybrid App(提供Android iOS App源码)、微信,提供ASR语音识别转文字 H5版语音通话聊天示例 DTMF编码解码
https://xiangyuecn.github.io/Recorder/
MIT License
4.59k stars 1.01k forks source link

recwave-Histogram3可视化问题 #202

Open yuhahahahaha opened 7 months ago

yuhahahahaha commented 7 months ago

你好,uniapp开发微信小程序,ios真机调试中canvas只显示右侧一半的问题(镜像模式mirrorEnable已开启),安卓机没有这个情况

xiangyuecn commented 7 months ago

测试了一下,iOS小程序上是有这个问题,看起来是微信iOS上的canvas没有实现 drawImage(canvas) 方法,目前没有好的解决办法,只能改绘图代码 将镜像部分通过代码重新绘制,丢弃drawImage方法

yuhahahahaha commented 7 months ago

已收到~

xiangyuecn commented 6 months ago

新版本 1.3.23121700 的 FrequencyHistogramView 已修复这个问题,删除了drawImage方法的调用

https://github.com/xiangyuecn/Recorder/blob/09e5fb6bfe21c1eaa331720a8dc78531030b216a/app-support-sample/miniProgram-wx/README.md?plain=1#L46-L49