Skip to content

Add a metadata change event #229

Description

@samuelmaddock

When navigator.mediaSession.metadata is reassigned, dispatch a mediametadatachange event on the document.

Motivation

I'm developing a browser extension which will relay media metadata to another service. Current approaches for knowing when metadata changes includes:

  • Monkeypatch navigator.mediaSession with an object containing a setter for the metadata property
  • Poll the metadata property checking for reference changes

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