Sorry, I'll try to explain my suggestion better. Instead of using DOM events when we receive a command, I think it would make more sense to put the listeners inside MediaRemoteControls. In your code, you'd listen for commands in your app by saying `window.addEventListener('remote', myFunction);`. In my suggestion, you'd say `myMediaRemoteControls.addCommandListener('play', myFunction);`.

This has two benefits: 1) we uses MediaRemoteControls for both sending notifications and receiving commands, and 2) We can have separate functions for each command (play, pause, next track, etc).

I'm not 100% sure this is the right way, but I think it's a bit easier to understand, since you know just by looking at my code that we're interacting with MediaRemoteControls. By using DOM events, people might get confused about what a "remote" event is.

David Flanagan might also have some ideas about this, since I think he commented on the email thread you started.