Firefox refuses to allow developers to disable picture in picture on videos
bugzilla.mozilla.org
bugzilla.mozilla.org
I agree with the Firefox folks here: the browser is the user's agent. Being the web developer's canvas comes after.
Splodging a big ugly and pointless Picture in Picture icon over a video is not the best user experience in all cases. As the application developer it should be up to me to make that decision, not Firefox.
As an application developer you're obviously shipping an executable or an app, so why is Firefox part of the equation?
Totally lost rn. Could you please elaborate?
Personally I make use of this feature a lot, it's one of the reasons I prefer firefox over chrome (though there's things to accomplish similar things on Chrome, but firefox native support is better... you even get some controls over the video on the pip window).
The way I interpret this, the original description mentioned "you can't display your ads, overlays or anything else and thus it breaks player implementations of content providers" - and I am pretty sure Firefox's decision for PIP feature was _specifically_ to allow one to watch picture without ads or (often terrible) players by content providers.
Now, the commenters understood that, and rightfully assumed that asking "hey FF, you made a system to block ads.. can you add an attribute to disable that?" would get their request denied, again. So they all say words like "enterprise system" to explain why they cannot give an example.
Note that any time there is a problem with specific website URL (like mirroring in comment 23, or video controls in comment 34 and 36) get assigned separate bugs and fixed. It's only vague "enterprise system" use cases which get rejected.
(Well, that and spanish learning system in comment 29, which needs to be able to track how of the video was watched. I am split about this - from one side I see the usefullness of knowing that sometimes, from other side this is exactly a kind of creepy feature that firefox is known to not implement)
You are over-exaggerating it to get what you want, aren't you? I had to go back and check. It appears only when you roll the mouse over the video and it's inconspicuous even then.
You want to take the decision away from the user because you claim that user experience is better.
What is so special about your website an your video that nobody ever would want to use a general purpose feature for that video?
Where this policy falls down is in assuming that video content consumption is all Netflix or YouTube. The absence of an API makes certain experiences that use video in different ways.
The UK driving test has a hazard perception part where the examinee has to click to indicate a developing hazard - if there are hardwired buttons on the video player that popup a new window, you can’t build something like that safely.
Half the point of JavaScript in the browser is that the browser development team cannot predict all the possible meanings of a click in a rich web experience.
User agency should be prioritized over all other concerns.
On the other hand, a few years ago I accidentally triggered PiP in mobile Safari, and it worked so inconsistently especially on YouTube when switching to another app, that I dread using it.
(Recently invidious showed how to do it properly)
https://caniuse.com/mdn-api_htmlvideoelement_disablepicturei...
So annoying because I should be able to create a user interface with animated UI made of videos, not animated GIFs.
There are many more valid use cases for disablePictureInPicture in the bugzilla thread https://bugzilla.mozilla.org/show_bug.cgi?id=1611831
Annoying.
The website can offer their CSS, and I can load my CSS (greasemonkey scripts) to override it. They have the choice and so do I.
The argument is "why should a website have the ability to block me from what I am doing to the content they give me"
Why should a website limit what I do?
https://www.itsupportguides.com/knowledge-base/computer-acce...
Greatmonkey makes it easier to do per site though and also supports injecting JavaScript
Users lost that fight when CSS was introduced. I wish the web was just pure content, but it’s not.
Haven't tried this myself, but this claims "distraction free writing" and "dark mode" for google docs.. lots of CSS with some JS sprinkled in... https://gist.github.com/TwistedSnakes/6eeb1590bffc67adbe8e78...
Also not clear how users lost the fight with CSS when the lack of control is due to canvas
You can choose not to go to them. Use open street map, or whatever.
A browser has more control over what you use.
And even yet, when all browsers follow the same standard, you have even less "control" - the standards should be for users
Mozilla is right.
Also, if the video files don't have an audio track, you shouldn't get a PIP control. Why do these GIF-replacement videos have an audio track? I believe (but have not tested) that adding the `muted` attribute to the `<video>` element will have the same effect as removing the audio track from the video files themselves.
The core problem is that for some applications the video is inextricably linked to some other content on the page and just makes no sense on its own, but Firefox always treats the video as its own content. Often that's fine. Sometimes it's not.
It's not even per-site. If you use SiteX where PiP is problematic then you can't even disable it just for that site but have to disable it globally.
I don't see how the user of SiteX is served by any of this.
All the others are jumping out the window into the fire, FOLLOW THEM!"