今日已更新 280 条资讯 | 累计 22470 条内容
关于我们

AudioContext not working after rapid page refreshes

/u/GramDanD 2026年05月28日 16:20 2 次阅读 来源:Reddit r/webdev

If you refresh a page quickly, sometimes the new AudioContext will be faulty, it won't pick up any audio and throws no errors. Fix is to create and immediately close a throwaway context before creating your real one: await new AudioContext().close(); const ctx = new AudioContext(); submitted by /u/GramDanD [link] [留言]

本文内容来源于互联网,版权归原作者所有
查看原文