admin管理员组文章数量:1426220
Since I upgraded to ios17 my AudioContext is not working on Safari.
I have a simple element that I connect a gain node through AudioContext. The audio loads the .mp3 file (remaining time is updated correctly). But when I press play, nothing happens. No error in the console
audioCtx = new AudioContext();
const gainNode = audioCtx.createGain();
gainNode.gain.value = 2;
const sourceNode = audioCtx.createMediaElementSource(audio);
sourceNode.connect(gainNode);
gainNode.connect(audioCtx.destination);
Since I upgraded to ios17 my AudioContext is not working on Safari.
I have a simple element that I connect a gain node through AudioContext. The audio loads the .mp3 file (remaining time is updated correctly). But when I press play, nothing happens. No error in the console
audioCtx = new AudioContext();
const gainNode = audioCtx.createGain();
gainNode.gain.value = 2;
const sourceNode = audioCtx.createMediaElementSource(audio);
sourceNode.connect(gainNode);
gainNode.connect(audioCtx.destination);
Share
Improve this question
asked Sep 19, 2023 at 19:48
danborddanbord
4,1063 gold badges37 silver badges52 bronze badges
1 Answer
Reset to default 7It sounds like you ran into this bug (https://bugs.webkit/show_bug.cgi?id=261414). It got marked as fixed but seems not to be shipped yet.
本文标签: javascriptios17 safari AudioContext (Web Audio API) problemStack Overflow
版权声明:本文标题:javascript - ios17 safari AudioContext (Web Audio API) problem - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745355477a2655024.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论