cog icon indicating copy to clipboard operation
cog copied to clipboard

Cannot exit fullscreen mode with HTML video controls, or exit to wrong resolution

Open lucadvp opened this issue 3 years ago • 4 comments

There is an issue with the full screen controls of HTML video tag on the versions 0.8.1 (WPE WebKit 2.32.3) and (WPE WebKit 2.34.4) of COG from Debian repositories: one can put video in full screen mode, but cannot exit. You can reproduce the simple flow using this W3school example page.

lucadvp avatar Mar 09 '22 07:03 lucadvp

With the GTK4 backend one can exit by pressing escape key. The video fullscreen controls also have a button to exit from fullscreen mode.

Which backend are you using exactly?

philn avatar May 07 '22 14:05 philn

My system has only a virtual keyboard which is hidden in video fullscreen mode, so the escape key is not available once in fullscreen mode.

The video controls are not working with the versions I've mentioned. Is the exit fullscreeen button of the video controls working in your setup? Which version are you using?

How can I retrieve the information about the backend you are asking?

lucadvp avatar May 11 '22 06:05 lucadvp

Is the exit fullscreeen button of the video controls working in your setup?

Yes

Which version are you using?

On desktop, WPE from main branch, and cog from master branch.

How can I retrieve the information about the backend you are asking?

I think the selected backend should be mentioned in the logs... Set this env var before starting cog: G_MESSAGES_DEBUG=all

philn avatar May 11 '22 10:05 philn

Hi @philn, given a set of constraints on my side, finally can retry on a newer version on my aarch64-linux-gnu: 0.12.4 (WPE WebKit 2.36.4)

The behavior I'm observing now is different and somehow better than with the older version: exit full screen works, but the resolution is automatically changed back to a wrong one (in my case 1024, 768), different from the one before entering full screen (was 600, 1024). Interestingly, it is even different from the video played itself, whose resolution is 1280x720.

The debug message exiting the full screen are the following: (cog:226): Cog-FDO-DEBUG: 08:45:14.453: Configuring new size: 1024x768 (cog:226): Cog-FDO-DEBUG: 08:45:14.453: New XDG toplevel configuration: (0, 0) (cog:226): Cog-FDO-DEBUG: 08:45:14.497: Resized EGL buffer to: (1024, 768) @1x

And added the env var you have suggested, this are now the additional information: Cog-INFO: 08:43:58.223: com.igalia.Cog.Platform: Cog-INFO: 08:43:58.223: wl - 500/CogWlPlatform Cog-INFO: 08:43:58.223: drm - 200/CogDrmPlatform Cog-INFO: 08:43:58.223: headless - 100/CogHeadlessPlatform

Thanks again for the help

lucadvp avatar Aug 17 '22 10:08 lucadvp