santy1016
Posts: 4
Joined: Wed Jun 22, 2016 6:03 am

Controlling width and Height of omxplayerGUI

Tue Jun 28, 2016 6:24 am

Hi All,
I am working on OMXplayerGUI and Kweb. I am able to write new html page, I am trying to invoke the omxplayerGUI on top of custom web page, it is able to render. I am controlled the parameters using the --preset , I am able to change the screenmode, fontheight, hide-controls, here is the screenshot
imgpi.png
imgpi.png (9.41 KiB) Viewed 1665 times
But when i start thr PI in kiosk mode, all the --preset values and not working, The omxplayerGUI is taking whole screen.
Is there any way to control the width x height of the omxplayerGUI

A help will be appreciated

Thank you

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Controlling width and Height of omxplayerGUI

Tue Jun 28, 2016 8:06 am

Create a preset with the following options:
screenmode = 'min'
videoheight = x
(x = height of the video in the window).
and all the other options you might need.

Select it on the settings page of kweb to make it the current (default) setting.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

santy1016
Posts: 4
Joined: Wed Jun 22, 2016 6:03 am

Re: Controlling width and Height of omxplayerGUI

Tue Jun 28, 2016 10:59 am

Code: Select all

	<form accept-charset="utf-8" enctype="application/x-www-form-urlencoded" method="get" action="file:///homepage.html" name="omxwindow"> <input name="cmd" value="formdata omxplayergui --preset=/usr/local/bin/kwebhelper_settings.py av big.mp4 " type="hidden">

I used this code, with my presets defined then also...
I am actually trying to autostart my webpage after pi boots up.
observations
1. The terminal comes and i fire xinit ./myapp ( script contains , kweb to open the webpage, with full screen video)
2.when i do startx, it opens correctly(I have configured the .config/lxsession/LXDE-pi/autostart)

I want to boot to my app, which is not happening, I just want the webpage after boot

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Controlling width and Height of omxplayerGUI

Tue Jun 28, 2016 11:56 am

The --preset=... option of omxplayerGUI takes just the preset name as an argument without path and without extension ".preset", e. g.
--preset=nogui
.preset is added internally and all preset files must reside in /usr/local/share/kweb.

Check the last chapter of the kweb manual for suggestions to boot into a kiosk application.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Graphics programming”