Closed Bug 1613133 Opened 5 years ago Closed 5 years ago

Some websites do not show video context menu for video content due to transparent overlays on the video

Categories

(Firefox :: Menus, enhancement)

74 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1611121

People

(Reporter: jeronimo.torti, Unassigned)

References

Details

Attachments

(3 files)

In order to activate PiP mode, go to about:config

media.videocontrols.picture-in-picture.enabled needs to be set to true - To activate the feature
media.videocontrols.picture-in-picture.video-toggle.enabled needs to be set to true - To activate the toggle
media.videocontrols.picture-in-picture.video-toggle.flyout-enabled needs to be set to true - To activate the “flyout” toggle on the first <video> that users see on a page
media.videocontrols.picture-in-picture.video-toggle.flyout-wait-ms - Controls how long the “flyout” toggle waits before sliding back

Actual results:
PiP option is not available in context menu videos.

Expected:
PiP option is available in context menu videos.

Note: in https://edition.cnn.com/ PiP option from context menu is only available for one second when the video starts to load, then is another context menu the one that appears.

Summary: Picture-to-picture option does not appear in context menu, from some websites videos. → Picture-to-picture option does not appear in context menu from some websites videos.

Can you provide screenshots of the context menus you're seeing, and more details on which videos on these sites you're using to test?

On Facebook, I get a custom video context menu which we cannot change, but if I use shift+right-click to open the context menu, I get "our" context menu and that does offer a picture-in-picture option.

I think the main issue with the other two is that we don't get a video context menu at all - but it's hard to be sure because the STR and actual results do not offer enough detail (which also means I'm not sure if you get the same thing on FB as I do).

Flags: needinfo?(jeronimo.torti)
Attached image cnnf.jpg
Flags: needinfo?(jeronimo.torti)

Hi,
thanks for Facebook tip, I was not noticed about it.

The only pages besides FB I was able to reproduce this issue were the detailed ones:

https://www.twitch.tv/
https://edition.cnn.com/

In CNN site, PiP option from context menu is only available for one second when the video starts to load, then is another context menu the one that appears. Please, refer to screenshots 'cnnv.jpg' (when appears) and 'cnnf.jpg' (when it doesn't). Also, I attach 't.jpg' to refer how it looks context menu in Twitch site.

Regards!

Flags: needinfo?(jaws)
Flags: needinfo?(jaws) → needinfo?(gijskruitbosch+bugs)

OK, so the screenshots match what I was seeing.

Not sure what we can do about this; it's effectively a markup/site issue, with the sites ending up with (semi-)transparent overlays over the video, which mean the content menu target is something other than the video.

I think in theory we can fix this by using a technique similar to the PiP button code for the context menu when the context menu click occurs, ie taking into account all elements at a given coordinate and checking to what degree the video or whatever is occluded. This would be a fairly significant (but positive!) change for the context menu code (which would have to keep track of several nodes, not "just" the 'target', but could also benefit other cases like bug 1611121.

Component: Video/Audio Controls → Menus
Product: Toolkit → Firefox
See Also: → 1611121
Summary: Picture-to-picture option does not appear in context menu from some websites videos. → Some websites do not show video context menu for video content due to transparent overlays on the video

I'll pass the ni to Mike when he's back. :-)

(In reply to :Gijs (he/him) from comment #6)

OK, so the screenshots match what I was seeing.

Not sure what we can do about this; it's effectively a markup/site issue, with the sites ending up with (semi-)transparent overlays over the video, which mean the content menu target is something other than the video.

I think in theory we can fix this by using a technique similar to the PiP button code for the context menu when the context menu click occurs, ie taking into account all elements at a given coordinate and checking to what degree the video or whatever is occluded. This would be a fairly significant (but positive!) change for the context menu code (which would have to keep track of several nodes, not "just" the 'target', but could also benefit other cases like bug 1611121.

So the question of if we can do something here and if so what, and how to prio that, over to Mike now that he's back...

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(mconley)

I think this is a great idea for an enhancement. Were we to do this, we'd need to deal with some of the same considerations as the PiP toggle - probably the biggest one being: how do we handle transparencies over media?

I wonder if the context menu should have a submenu in that case, kind of like "This Frame", but instead "This Video", or "This Image", and then the submenu allows direct control to the underlying video or image or what-have-you.

I think that'd be pretty neat, and a great way of empowering our users over web content.

Would be worth asking UX what they'd want to do in the context menu for these cases, and maybe this could be a nice small-medium sized project for somebody.

Type: defect → enhancement
Flags: needinfo?(mconley)

This is basically a dupe of bug 1611121 now. :)

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: