We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c15d3f commit 4dce5a6Copy full SHA for 4dce5a6
src/howler.core.js
@@ -558,10 +558,17 @@
558
559
// If no sound has played after 30 seconds, suspend the context.
560
self._suspendTimer = setTimeout(function () {
561
- if (!self.autoSuspend) {
+ if (!self.autoSuspend ) {
562
return;
563
}
564
565
+ // Issue #1707: https://github.com/goldfire/howler.js/pull/1707/commits/f8dd3805a58c605f9e5ce1e04d3a3ab146103822
566
+ // Fixed the issue of music not playing in iOS 14.0 30s,
567
+ // and music can no longer be played after that·
568
+ if (self.ctx.state === "suspended") {
569
+ return;
570
+ }
571
+
572
self._suspendTimer = null;
573
self.state = "suspending";
574
0 commit comments