From f8dd3805a58c605f9e5ce1e04d3a3ab146103822 Mon Sep 17 00:00:00 2001 From: virgil Date: Tue, 13 Feb 2024 10:20:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fixed=20the=20issue=20of?= =?UTF-8?q?=20music=20not=20playing=20in=20iOS=2014.0=2030s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed the issue of music not playing in iOS 14.0 30s,and music can no longer be played after that --- src/howler.core.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/howler.core.js b/src/howler.core.js index 5198bdfc..6e1df53d 100644 --- a/src/howler.core.js +++ b/src/howler.core.js @@ -486,6 +486,12 @@ return; } + // Fixed the issue of music not playing in iOS 14.0 30s, + // and music can no longer be played after that· + if (self.ctx.state === "suspended") { + return; + } + self._suspendTimer = null; self.state = 'suspending';