Skip to content

fix: fix iphone audio playback by adding loadedmetadata listener#338

Open
Nimit012 wants to merge 1 commit intoCreateJS:masterfrom
Nimit012:fix/iphone-playback-issue
Open

fix: fix iphone audio playback by adding loadedmetadata listener#338
Nimit012 wants to merge 1 commit intoCreateJS:masterfrom
Nimit012:fix/iphone-playback-issue

Conversation

@Nimit012
Copy link

@Nimit012 Nimit012 commented Nov 13, 2025

Problem

Audio was intermittently not playing on iPhone when using HTMLAudioPlugin.

Root Cause

The canplaythrough event wasn't firing reliably on iPhone, which prevented the _loadedHandler from being invoked. This caused audio to fail loading silently without any error indication.

Solution

Added loadedmetadata event listener as a fallback to ensure the load handler is called on iPhone where canplaythrough is unreliable.

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

Successfully merging this pull request may close these issues.

1 participant