Skip to content

How to listen for when track is paused by system #1384

Open
@devskope

Description

@devskope

How do I detect when a playing sound is paused/resumed/stopped by the Operating System?

For instance say track.playing() === true and I hit the pause button on my keyboard (or pause from the operating system), does howler emit an event? As far as I know, onpause isn't fired.

I need to toggle certain states when a sound is paused or resumed by the operating system's media controls not only when I explicitly call play(), pause() or stop().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions