Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

录制时长不对 #34

Open
xumingjie1658 opened this issue Jul 16, 2019 · 12 comments
Open

录制时长不对 #34

xumingjie1658 opened this issue Jul 16, 2019 · 12 comments

Comments

@xumingjie1658
Copy link

有时候录制时长很短,漏掉后面很多,有时候5s的录音会变成10ms的慢放。
浏览器:ipad 2018款 safari

@xiangyuecn
Copy link
Owner

没有ipad测试,能不能在测试页面里面,用wav格式录一下,大概1-10秒,把有问题的2-3个录音下载下来,不要改名字。发到这个issue里面 研究研究

@xumingjie1658
Copy link
Author

好的,不是必现,但是 在我们应用了出现的频率算很高了

@xumingjie1658
Copy link
Author

其实还有失败的概率 这个时长不对的概率低一些 但是也时常出现...

@xiangyuecn
Copy link
Owner

example:
rec-6229ms-16kbps-16000hz.wav.zip

电脑版的github回复里面支持拖放,可以传zip后缀文件😊

@xumingjie1658
Copy link
Author

我这边还没办法导出,现象更明确了,如果当前页面有audio在播放的话(即使在录制之前把audioElement.pause()掉),这时候调用相关函数跟safari申请权限开始录制的话,就会有问题,而且整个页面会一直有问题。如果申请权限的时候没问题的话,整个页面就会一直没问题

@xiangyuecn
Copy link
Owner

那就要在调用录音 之前 就要先播放一段音乐,晚会我在demo页面里面加一个音乐播放器方便测试

@xumingjie1658
Copy link
Author

播是的wav,录的是mp3,就有问题。播的是mp3的话,现在看起来是好的。

@xumingjie1658
Copy link
Author

audio_problem_test.tar.gz

问题代码

@xumingjie1658
Copy link
Author

在ipad safari https server下,依次点击play, start record, stop record

xiangyuecn added a commit that referenced this issue Jul 17, 2019
@xiangyuecn
Copy link
Owner

没有ipad似乎再现不了这个问题🍳

@xiangyuecn
Copy link
Owner

已在iphone上再现此问题,只要先播放过任何声音,就无法开始录音。如果是先录音,在播放就没有问题。

有时间研究一下这个ios特有feature😂😂

xiangyuecn added a commit that referenced this issue Jul 29, 2019
@xiangyuecn xiangyuecn added the help wanted Extra attention is needed label Jul 29, 2019
@xiangyuecn xiangyuecn removed the help wanted Extra attention is needed label Sep 9, 2019
@fuguxu
Copy link

fuguxu commented Jul 14, 2023

已在iphone上再现此问题,只要先播放过任何声音,就无法开始录音。如果是先录音,在播放就没有问题。

有时间研究一下这个ios特有feature😂😂

有研究出啥原因吗,我这边也遇到了,用audio播放过音频之后,就会影响录音的效果,如果不播放任何音频,录音就没问题,不知道是不是频道串了,还是audio的src对录音有影响,目前的做法是: 播放完后,就把audio的src置空了。 ios不同版本真是遇到各种奇葩的问题。。。。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants