Open mariokreitz opened 2 months ago
Autoplay Restrictions: Safari on iOS requires user interaction (such as a tap or touch event) to play audio or video. This means that autoplay is disabled unless triggered by direct user input.
Supported Audio Formats: The Pokémon cries retrieved from the PokeAPI are provided in .ogg
format, which is not natively supported in iOS Safari. To ensure compatibility, you'll need to convert or use alternate formats like .mp3
or .m4a
, which are supported across all major browsers, including Safari.
Make sure to update the audio handling logic to address both the autoplay restriction and the format compatibility for a smooth user experience on iOS.
Bug Report: Pokemon Cry Doesn't Play
Description: When selecting a Pokémon and pressing the speaker button, the cry (sound) of the Pokémon does not play as expected.
Steps to Reproduce:
Expected Behavior: Upon clicking the speaker button, the Pokémon’s cry should play.
Actual Behavior: The Pokémon’s cry does not play when the speaker button is pressed.
Tested On:
Possible Cause: There might be an issue with the audio file not loading correctly or the event handler not triggering the sound.
Environment: