Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

block media keys from html audio pause

navigator.mediaSession.setActionHandler('play', function() { /* Code excerpted. */ });
navigator.mediaSession.setActionHandler('pause', function() { /* Code excerpted. */ });
navigator.mediaSession.setActionHandler('seekbackward', function() { /* Code excerpted. */ });
navigator.mediaSession.setActionHandler('seekforward', function() { /* Code excerpted. */ });
navigator.mediaSession.setActionHandler('previoustrack', function() { /* Code excerpted. */ });
navigator.mediaSession.setActionHandler('nexttrack', function() { /* Code excerpted. */ });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #block #media #keys #html #audio #pause
ADD COMMENT
Topic
Name
1+5 =