AirPod removal causes Youtube Autoplay (continued from another issue)

Description of the issue:

This is the same as the issue previously reported here: Youtube auto plays every time I put on my airpods

AirPods on macOS have the ability to pause the currently playing media (Youtube) when the user removes them from their ears, and if only one got removed, playing again when it is reinserted.

But with Brave (does not happen with Chrome, Firefox, Safari), when you remove them, it does the opposite: the media begins to play, not pause.

As per the last comment on the previous issue, I went and Disabled the flag #hardware-media-key-handling (which was on Default), restarted Brave and saw that Brave stopped reacting to AirPods. Then I went again and Enabled the same flag, restarted Brave, and now it works correctly as in any other browser!

So this is no longer an issue for me, but maybe it is for others and the “Default” setting on #hardware-media-key-handling should work correctly.

Steps to Reproduce (add as many as necessary): 1. 2. 3.

While having AirPods in your ears:

  1. Pause Youtube video
  2. Remove one AirPod
  3. Video on Youtube will resume playing
  4. Change Brave flag #hardware-media-key-handling from Default to Disabled and restart Brave
  5. Change Brave flag #hardware-media-key-handling to Enabled and restart Brave
  6. AirPods should now work correctly and pause media when removed from ear and resume playing when reinserted

Actual Result (gifs and screenshots are welcome!):

Correct behaviour with flag #hardware-media-key-handling set to Enabled

Expected result:

With flag #hardware-media-key-handling on Default setting, correct AirPod behaviour while playing videos on Youtube

Reproduces how often:

Always

Operating System and Brave Version(See the About Brave page in the main menu):

macOS 10.14 Mojave, Brave Version 0.67.123 Chromium: 76.0.3809.87 (Official Build) (64-bit)

Additional Information: