i-rinat / freshplayerplugin

ppapi2npapi compatibility layer
MIT License
728 stars 52 forks source link

Fullscreen showing very small window #376

Open Anntoin opened 6 years ago

Anntoin commented 6 years ago

Hi,

I'm having a similar issue to that described here: https://github.com/i-rinat/freshplayerplugin/issues/350

When trying to maximize a video to fullscreen a very small window displays by the cursor and that's it.

I'm using Kodi in standalone mode on arch.

I'm guessing Kodi doesn't respond to the wm hints that are set to maximize the window after creation. I was thinking this should work if the dimensions are specified in freshplayer.conf but this doesn't appear to effect the window size.

Appreciate any tips

i-rinat commented 6 years ago

How do you use web browser in Kodi? I've managed to start kodi-standalone under Xephyr (which turned out to be slooooooow, about 1 fps or less). But I can't find a browser there. There is a Web Viewer addon, but it only displays text, and doesn't try to render HTML at all, let alone Flash.

Anntoin commented 6 years ago

I'm using the 'advanced emulator launcher' plugin to launch browsers in Kodi. You can configure a launcher with arguments, e.g. /use/bin/firefox --width 1920 --height 1080 www.netflix.com

It's a fairly bare bones Arch install, this provides the systemd unit for kodi-standalone https://aur.archlinux.org/packages/kodi-standalone-service/

i-rinat commented 6 years ago

I think the only way is to add a configuration option that forces fullscreen window position. I'll take a look.

i-rinat commented 6 years ago

I've just pushed https://github.com/i-rinat/freshplayerplugin/commit/2f9b5ccb1fb3c82d483dcbf797f09e822b0ae8c9 to the master branch. It doesn't detect non-WM mode automatically, but there is new configuration file option, fullscreen_window_geometry. Try to set it to "0,0,1920,1080". As you can guess, that's for 1920 by 1080 window at the top left corner of the screen.

Anntoin commented 6 years ago

Thank you!!! :champagne: :clinking_glasses:

Just tested and with that option it works a treat :smiley: