Live data from Hacker News

Building Firefox's Picture-in-Picture Support

hacks.mozilla.org

61–70 of 133 posts

Re: Building Firefox's Picture-in-Picture Support

#62
post #48

On mac os its mostly unusable, because this PIP window stays on same workspace. My browser is always fullscreen and in safari I can open small youtube window and move to other workspace (code, for example) and window still exists on each of them.

This would be one advantage of the system's built-in PiP mode employed by Safari. I don't find the limitations (maximum size, single video) to be hinderances.

Re: Building Firefox's Picture-in-Picture Support

#63
post #48

On mac os its mostly unusable, because this PIP window stays on same workspace. My browser is always fullscreen and in safari I can open small youtube window and move to other workspace (code, for example) and window still exists on each of them.

This would be one advantage of the system's built-in PiP mode employed by Safari. I don't find the limitations (maximum size, single video) to be hinderances.

Can't you trigger that in Firefox also by right clicking on a video (or twice on YouTube) and then choosing PiP?

Re: Building Firefox's Picture-in-Picture Support

#65

Earlier quoted context omitted.

I would love to have an external controller for start/stop/fast forward/rewind when watching tutorials on Youtube. For example a controller [1] people are using to edit videos. Quite often I would like to pause the video for a while, repeat last 30 sec or by-pass some boring segment. [1] https://www.amazon.com/Contour-Design-Shuttle-Xpress-Multime...

That is an awesome idea. Would be extremely useful for guitar and transcription too, while writing the text in Word. It typically would be a usecase for the Macbook touch bar, does anyone has one and can tell us whether it has an integration with web videoplayers?

Videos and audio in Safari use the touchbar as a scrubber with controls.

Re: Building Firefox's Picture-in-Picture Support

#66
post #46

At first I didn't even realize this was FF feature (I suspected something like gstreamer, but was lazy to investigate). Now that I know it is indeed FF, I just cannot wrap my head around it... 1) I can pause the video, but cannot navigate it. I guess the navigation would be there if it was technically possible, but from practical standpoint this makes it useless even if it appealed to me in other ways. Popping a vide…

I am told that Firefox Nightly now allows you to use keyboard shortcuts to seek the video. Part of the problem here is that there are some sites that have special logic around seeking, so having playback controls on the PiP popup can cause the original page's custom controls to get confused or out of sync.

Re: Building Firefox's Picture-in-Picture Support

#67
I thought this might have been some Steam tie-in or otherwise not a Firefox built-in feature, never clicked it.. and now I can't even try it as the button's not appearing, it seems pretty unstable. Not that I really want to... This solves a problem I've never had. What's so hard about moving the video to a new window, or if your screen is too small moving the window to a new monitor? In Linux you can also make the window smaller to just have the video visible and then make it "always on top" of whatever else you're doing.

Re: Building Firefox's Picture-in-Picture Support

#68
post #48

On mac os its mostly unusable, because this PIP window stays on same workspace. My browser is always fullscreen and in safari I can open small youtube window and move to other workspace (code, for example) and window still exists on each of them.

I am told one problem with the native macOS PiP window is that it does not allow programs to configure which playback controls to show. There is a Firefox bug in file for the workspace issue. Chromium works around this and Firefox is likely to use the same approach.

Re: Building Firefox's Picture-in-Picture Support

#69

I wonder if an attacker could leverage this to play twenty-questions with a user. Video is typically so-and-so dimensions in the bottom right-hand corner. Clicking the video (I assume) pauses it. Pausing a video (I assume) can change the request pattern for what is being streamed. Most sites use a white background (let's say). So an attacker who controls video content can stream a still image of some site or browser…

the entire concept reminds me too much of iframes, embedded flash and Java applets. i can see many security problems coming with this in the future. especially if they try to make it a real window that can jump tabs and stay pinned, which seems to be what most people here would really want and an obvious next feature.

think about click jacking, address bar spoofing, and similar mosaic style hijacking. that's not even getting into potential CORS and origin spoofing potential.

Re: Building Firefox's Picture-in-Picture Support

#70

People using tiling window managers like i3 or sway should get friendly with this feature. It allows me to "full window" (note: not screen) netflix/amazon/YouTube videos in a tile which was impossible to do without PIP.

At least in i3 and bspwm this is possible by fullscreening in firefox and then hitting your windowmanagers fullscreen shortcut.

Hmm, that worked for me in i3 before but not in bspwm.

I tried FF PiP recently, but I have "bspwm config honor_size_hints true" and that makes the window resize itself until it's the size of a postage stamp.

The above is a known bug in FF, though apparently fixed in FF73: https://bugzilla.mozilla.org/show_bug.cgi?id=1600414

Post reply on HN