title: Is there any way to pass media key events back to Windows from Chrome?
body: <p>Chrome 73 added media key support for playing videos in the browser (e.g. YouTube). I'm trying to make a chrome extension that let's you use media keys for both Chrome and system media (like normal control for Spotify or media players). I can intercept the media key event in Chrome using the MediaSession API, but have no idea if it is possible to also 'free' the media key event and let it propagate to the next system media process. Does anyone even know it if possible/how I could do it?</p>
  
  <p>This is how I am currently capturing the media key events ('play', 'pause', 'nexttrack' and 'previoustrack'):</p>
  
  <pre><code>window.onload = function() {
  
      navigator.mediaSession.setActionHandler('play', function() {
        console.log('play media key pressed');
        playMedia(document);
      });
  
  }
  </code></pre>