Skip to content

Mediakeys not working for TuneIn #348

Description

@riclucio

The click triggered against the play/pause button is triggering a refresh on the page.
Possibly because the element receiving the event is an svg, which simply bubbles up to the parent <a/> element.
For reference, I'm trying on this page: https://tunein.com/radioalphafm/
In my tests, this click worked:

$('[data-testid=profilePlayerActionButton]').parentElement.click()

Triggering the event this way forces the refresh:

$('[data-testid=profilePlayerActionButton]').parentElement.dispatchEvent(new MouseEvent('click', {bubbles:true,defaultPrevented:true}))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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