phaserjs / phaserjs/phaser

Unlock html audio one time

Open
#6,417 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

🎵 Audio
Dominant language
JavaScript
Stars
40.3k
Forks
7.2k
PR merge metrics
No merged PRs in 30d

Description

On ipad Safari, Here is a test case.

  • SceneA and SceneB load html5 audio individually.
  • SceneA can play sound after touch event
  • SceneB needs touch event to unlock loaded html5 audio.

Is it possible unlock html audio one time, instead of unlock per-scene?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked CodePen test case and reproduce the iPad Safari behavior with SceneA and SceneB. Trace Phaser's HTML5 audio handling to determine whether one touch event can unlock audio across scenes; done means both scenes play loaded audio after a single user gesture.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.