media-controller-extension icon indicating copy to clipboard operation
media-controller-extension copied to clipboard

Controller buttons dont always appear with youtube videos

Open DesperatePea opened this issue 1 year ago • 3 comments

Sometimes the controls buttons dont appear when listening to youtube videos. image

Firefox 123.0 (64-bit) Mac Os Sonoma

DesperatePea avatar Feb 26 '24 14:02 DesperatePea

This is a known issue. The controls are hidden if the extension cannot find the corresponding media element from DOM. Possibly due to the tab having been discarded and reactivated before.

tnychn avatar Feb 27 '24 03:02 tnychn

Yes, I also had this now. Just installed the add-on to see how it works. I was puzzled about that (/) button and observed strange behaviour after clicking it. I had to close the tab and reopen, then reload it again to get YouTube playback controls back.

In the source code I finally found out that it unloads the tab without closing it. A tooltip on the buttons would have been nice.

ygoe avatar Aug 08 '24 10:08 ygoe

I notice this on other sites, too. I suspect it is because they use iframes. Finding the video (or audio) element that is playing is a bit more cumbersome when you need to deal with iframes. You have to have it where the injected code runs in the iframe, but then communicates back with the extension.

trlkly avatar Aug 20 '24 20:08 trlkly