Skip to content

emit an event for the context changing from "suspended" to "running" #282

Open
@jeremyml

Description

@jeremyml

It would be great to emit an event for the context changing from "suspended" to "running". That way I can know if I can start playing sounds to the user on iOS.

Currently I simply monitor the same events _unlock() uses, but it would be cleaner to trigger from a SoundJS event.

document.addEventListener("mousedown", runAudio, true);
document.addEventListener("touchend", runAudio, true);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions