Live data from Hacker News

Building Firefox's Picture-in-Picture Support

hacks.mozilla.org

121–130 of 133 posts

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

#122
post #91

Earlier quoted context omitted.

That would be great. My main use-case is watching youtube videos. When watching a video, I often pause (space) to have a better look at what's on the screen [-> rewind (left)] -> play (space) I absolutely loathe youtube's "suggested videos" that pop in my face when I try to focus on a specific frame. I never used that feature, it's just a way to shove ads in my face. Moreover, if I close it, the open/close button is…

Are you sure Youtube's keyboard shortcut for pause is "Space" for you? For me it's K, with J being jump backward a few seconds and L being jump forward a few seconds. I don't know if the media buttons (Pause, Rewind, Fast Forward) would also work as this keyboard pre-dates Windows 95 so it doesn't have anything like that. [ Yes I should buy a new keyboard... ]

Thank you, I hadn't realized there were separate keyboard shortcuts, even though the one for pause is indicated on hover.

Even though space conflicts with toggling the currently selected item (tab/space), it is the more common shortcut in video player applications, and is quite easy to reach. I also think that mouse clicking an element shouldn't change the keyboard selection to that one.

Not sure how those media control are interpreted, I think I usually set them to control the MPRIS interface, so they would at the very least work on KDE with plasma browser integration.

Written with my SUN type-7 keyboard

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

#123
post #91

Earlier quoted context omitted.

That would be great. My main use-case is watching youtube videos. When watching a video, I often pause (space) to have a better look at what's on the screen [-> rewind (left)] -> play (space) I absolutely loathe youtube's "suggested videos" that pop in my face when I try to focus on a specific frame. I never used that feature, it's just a way to shove ads in my face. Moreover, if I close it, the open/close button is…

Are you sure Youtube's keyboard shortcut for pause is "Space" for you? For me it's K, with J being jump backward a few seconds and L being jump forward a few seconds. I don't know if the media buttons (Pause, Rewind, Fast Forward) would also work as this keyboard pre-dates Windows 95 so it doesn't have anything like that. [ Yes I should buy a new keyboard... ]

Space works as long as the video player has keyboard focus. Otherwise the default browser behavior takes over which is the same as Page Down.

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

#124
post #78
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…

My main complaint is that subtitles don't work with it (on Netflix, at least). You don't have to use it. For me, it works when I'm trying to dual task on a single monitor. For example, I use it regularly on my smartphone (with a native video player). As for the example you mentioned: the issue is autoplay. Netflix just rolled out an update when they allow you to disable that non-feature.

Another thing with Netflix is that they somehow reload the page between episodes so you have to go back to the page and re-enable the PIP.

Youtube does not.

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

#125
This is the Picture-in-Picture API it implements: https://w3c.github.io/picture-in-picture/

I am surprised that the API is modelled to only allow watching videos in PiP, while the old and mature Fullscreen API allows to put any element in full screen. These should be analogous. I don't see a reason why I can run a in a small window, but not a a , etc.

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

#127

Really awesome feature! Now I understand why I always see this little blue icon in my Udemy course. Too bad it is "under" the button to switch to the next video, so I can't actually click it...

You can right click to get the menu option, if needed try right clicking two times.

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

#128

This is the Picture-in-Picture API it implements: https://w3c.github.io/picture-in-picture/ I am surprised that the API is modelled to only allow watching videos in PiP, while the old and mature Fullscreen API allows to put any element in full screen. These should be analogous. I don't see a reason why I can run a in a small window, but not a a , etc.

As the article mentions, Firefox is not currently implementing the Picture-in-Picture Web API that you linked to. Firefox's implementation is a browser feature only, and not exposed to the web at large.

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

#129
post #12

For the life of me I can't see why anyone would need picture in picture for browsers. More features most people don't need. Please come down to earth Mozilla. You have lost your way. Please revisit NCSA Mosaic and witness your roots.

Yea, I don't get it either. On the other hand, I almost never use a window that isn't maximized.

It's useful sometimes. Other times, I'd love to have a feature that would maximize to the browser content area, keeping the tab navigation (including sidebar).

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

#130

Earlier quoted context omitted.

I use this all the time to watch Netflix while programming: put Netflix in PiP mode, then put the resulting window in the corner and switch to other applications to work.

Same, also for YouTube, KimCartoon and many others. The reason I mention them is because the window ID of the PiP is fixed, meaning that I can easily define a window rule for it in my desktop environment independent from Firefox I'm loving this.

Thanks man, I didn't know this...
Post reply on HN