Skip to content

How do I get a callback for autohide? #532

Answered by dylanjha
debjits1 asked this question in Q&A
Discussion options

You must be logged in to vote

@debjits1 can you try this and let us know if that works?

const mediaController = document.querySelector('media-controller');
mediaController.addEventListener('userinactivechange', function () {
  /* autohide */
});

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@debjits1
Comment options

@dylanjha
Comment options

Answer selected by debjits1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants