Live data from Hacker News

Building Firefox's Picture-in-Picture Support

hacks.mozilla.org

21–30 of 133 posts

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

#21
post #15

Earlier quoted context omitted.

A comment on reddit said they use it all the time when following coding tutorials. Seems like a handy use case.

That brings up a second question: who watches coding tutorials? I'd imagine it's probably people with less than a few weeks of coding experience, because it's horribly inefficient compared to text tutorials.

Anything with an unfamiliar IDE can be very confusing without a video tutorial.

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

#23

> To work around these problems, we rely on the fact that the web page is being sent events from the browser engine. At Firefox, we control the browser engine! Before sending out a mouse event, we can check to see what sort of DOM nodes are directly underneath the cursor. This triggered some mental alarm bells when I read it. I understand what Mozilla is trying to accomplish, but this feels like it could become a ser…

Yeah I must agree with you. Reading that part, I could only think: “Someone will figure out how to turn this into a major security issue.”

It sounds like the kind of stuff that clickjackers use, but this sounds like it could be used for even more nefarious purposes.

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

#24
post #13

Picture in Picture is great for lectures or follow-along tutorials and I'm glad people are taking it more seriously (initially was using Youtube on Safari purely because of this feature, but later on Chrome had it... albeit a bit wonky, I started using it on Chrome normally).

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...

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

#25
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 security "statement" with a picture of a button to click if the statement is untrue. If the user clicks the fake button they stop the video and signal to the attacker their response to the statement.

Not super useful given an arbitrary page behind the video. But what if the video's content is about, say, how to change settings on your bank site to get a better APR? I can imagine someone assuming that the video has turned into a small "quiz" from the bank. Maybe even a "click here to proceed" button to get them to unpause the video.

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

#26

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.

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

#27
post #15

Earlier quoted context omitted.

A comment on reddit said they use it all the time when following coding tutorials. Seems like a handy use case.

That brings up a second question: who watches coding tutorials? I'd imagine it's probably people with less than a few weeks of coding experience, because it's horribly inefficient compared to text tutorials.

I find them valuable if you don't need to write code to experiment with but can just watch the video at the regular speed and get the concepts that you can then use in your project. Also allows for watching while you do other stuff on the side.

SymfonyCasts is an example where I like the videos. They aren't the typical YouTube style of "let me talk about random things for 5 minutes so I get this video over the 10 minute mark", they get pretty much straight to the point. They have a text version below, which also makes search easy, And you can click on any sentence in the text version to jump to the right position in the video. I found them very helpful when I started with Symfony, but haven't really watched any once I had a solid enough understanding to get work done and incrementally learn more things as I need them.

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

#28
post #15

Earlier quoted context omitted.

A comment on reddit said they use it all the time when following coding tutorials. Seems like a handy use case.

That brings up a second question: who watches coding tutorials? I'd imagine it's probably people with less than a few weeks of coding experience, because it's horribly inefficient compared to text tutorials.

I've occasionally found them helpful for less mainstream stuff where there's a lack of quality resources.

The 'failure mode' for a lazy text tutorial is that important details are left out. The 'failure mode' for a lazy video tutorial is that they didn't edit anything out.

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

#30
post #14

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.

I use PIP a lot in Chrome while browsing Reddit. If I see a video link, I can play the video while continuing to scroll through Reddit comments. (YouTube PIP is kind of difficult to discover; you have to right-click, move the mouse off the menu, and right-click again to get the native right-click menu, which is where the PIP button is.)

Why not just open it in another tab?
Post reply on HN