07-15-2024 02:34 PM - edited 07-15-2024 02:35 PM
I have a Mackbook with macOS Ventura 13.6.7 and Firefox 128. When I open a Youtube video in Firefox and then go back to the Youtube homepage (either via browser Back button or clicking on the Youtube logo), the video is still in the background (and, therefore, in the "Now playing" Mac app). Thus, when I tap Play on my bluetooth headphones, the video starts playing again in the headphones (audio only), even though I'm not on the video page anymore.
I tested it in Chrome, and it doesn't happen there.
Is there a way to prevent this without turning off the media.hardwaremediakeys.enabled? That is, I still want to control video by the headphone controls, but not when I'm no longer on that video page.