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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Sep 21, 2017 11:14 am

nlc wrote:
Thu Sep 21, 2017 8:03 am
gkreidl wrote:
Thu Sep 21, 2017 5:37 am

No, not really. But there's a trick I'm using in omxplayerGUI for the popup menus: If you can catch the mouse event, when it enters a video area, you can set the transparency to 50% (128), end reset it again to 255 when the mouse leaves the video area.
I had the same idea and I tried a little permanent transparency on the video, with a white background under the video. It works, but when in full screen I need to have the cursor on the video too (to be able to click on some part of the video), and the true video without transparency.

But unfortunately, it seems it will be impossible ?
You could try to catch a simple mouse click anywhere and use it to return from full screen mode.
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

nlc
Posts: 37
Joined: Mon Sep 15, 2014 2:40 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Sep 21, 2017 1:54 pm

No because the goal is to be able to click on specific zone of the video to generate events on another raspberry (with ajax calls).
If the cursor can't be visible, I think I am in a dead end :o

tree
Posts: 9
Joined: Sun Mar 13, 2016 5:39 am

no package named gdebi-core

Fri Sep 22, 2017 3:27 am

Hi,

The 'debinstall' script that is included in the kweb 1.7.9 tarball has this line:

sudo apt-get -y install gdebi-core

There is no package by that name available from apt-get:

sudo apt-get -y install gdebi-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gdebi-core

What is the resolution, please?

Thanks.

tree
Posts: 9
Joined: Sun Mar 13, 2016 5:39 am

re: no package named gdebi-core

Fri Sep 22, 2017 3:39 am

Never mind. Bad package list.

Thanks,
tree

nugatory
Posts: 2
Joined: Sat Sep 16, 2017 5:29 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Fri Sep 22, 2017 9:54 am

gkreidl wrote:
Sun Sep 17, 2017 2:50 am
nugatory wrote:
Sat Sep 16, 2017 5:36 pm
account lon in

kweb working great for me, other than ability to log in to services such as webmail, or anything that require a login.

Any ideas? Thanks
Did you enable Cookies?
It might also be a good idea to disable private browsing (on the configuration page).
no luck so far... any other ideas?

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Fri Sep 22, 2017 2:07 pm

nugatory wrote:
Fri Sep 22, 2017 9:54 am
gkreidl wrote:
Sun Sep 17, 2017 2:50 am
nugatory wrote:
Sat Sep 16, 2017 5:36 pm
account lon in

kweb working great for me, other than ability to log in to services such as webmail, or anything that require a login.

Any ideas? Thanks
Did you enable Cookies?
It might also be a good idea to disable private browsing (on the configuration page).
no luck so far... any other ideas?
No idea. I'm logging into quite a number of websites and have met no problems so far.
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

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

First Stretch version available

Fri Sep 22, 2017 2:49 pm

I've just published the first Stretch version of the kweb suite.

The hardware accelerated webkit3 engine (created by the Foundation to be used by epiphany) is not available on Stretch and so there is no need for two kweb versions any more. Both browsers have been merged into one (kweb), which now uses the GTK-3 interface.

Because python-pip is working again on Stretch, the installation of youtube-dl is now done using pip automatically during installation of the kweb suite.

The installation process has been simplified and a few scripts have been removed.

The dependencies now include python-pip and uget and git has been removed.

The kweb manual is not up to date yet (still version 1.7.0) and will be updated in version 1.8.0.
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

cjan
Posts: 484
Joined: Sun May 06, 2012 12:00 am

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Fri Sep 22, 2017 10:08 pm

had a Omxplayer-gui setup file, which /path can fine it from jessie to copy to stretch.

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Sat Sep 23, 2017 6:59 am

cjan wrote:
Fri Sep 22, 2017 10:08 pm
had a Omxplayer-gui setup file, which /path can fine it from jessie to copy to stretch.
Everything (e.g. bookmarks, presets etc.) is in
/usr/local/share/kweb
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

p404001
Posts: 1
Joined: Sat Sep 23, 2017 12:50 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Sat Sep 23, 2017 12:57 pm

i'm using kweb 1.7.9.8, and i've found out if i close youtube-dl server in the kweb

it seems like kweb didnt close connection properly.

Code: Select all

pi@raspberrypi:/usr/local/bin $ sudo lsof -i:9192
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
kweb    2869   pi   13u  IPv4 216816      0t0  TCP localhost:51128->localhost:9192 (CLOSE_WAIT)
so i need to kill it manually.

and does kweb support youtube subtitles/closed captions?

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Mon Oct 02, 2017 7:40 am

p404001 wrote:
Sat Sep 23, 2017 12:57 pm
i'm using kweb 1.7.9.8, and i've found out if i close youtube-dl server in the kweb

it seems like kweb didnt close connection properly.

Code: Select all

pi@raspberrypi:/usr/local/bin $ sudo lsof -i:9192
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
kweb    2869   pi   13u  IPv4 216816      0t0  TCP localhost:51128->localhost:9192 (CLOSE_WAIT)
so i need to kill it manually.
Similar things happens with all web browsers, just check it with "netstat -t -W -p", If you want to avoid it in this case, run the youtube-dl-server in embedded mode by starting omxplayerGUI.
and does kweb support youtube subtitles/closed captions?
Perhaps within the browser, but I have never tested it. But definitely not when playing web video with omxplayerGUI.
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

nlc
Posts: 37
Joined: Mon Sep 15, 2014 2:40 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 04, 2017 4:42 pm

Dear gkreidl,

I try to launch command on the raspberry with kweb through links int the Web page, but it doesn't work, I don't know why.

In my .xinitrc I have :

Code: Select all

matchbox-window-manager &
kweb -JXLKR6 /home/pi/controlScreen2/index.html
In my web page, I have this link :

Code: Select all

<a href='file:///homepage.html?cmd=sudo%20pkill%20kweb'>link</a>
I try to kill kweb to do a test (my true need will be to move the cursor on screen with a xdotool command). But nothing happens when I click on the link.

I set X and L option, should I do anything more ?

Regards,
Cyril

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Oct 05, 2017 4:16 am

nlc wrote:
Wed Oct 04, 2017 4:42 pm
Dear gkreidl,

I try to launch command on the raspberry with kweb through links int the Web page, but it doesn't work, I don't know why.

In my .xinitrc I have :

Code: Select all

matchbox-window-manager &
kweb -JXLKR6 /home/pi/controlScreen2/index.html
In my web page, I have this link :

Code: Select all

<a href='file:///homepage.html?cmd=sudo%20pkill%20kweb'>link</a>
I try to kill kweb to do a test (my true need will be to move the cursor on screen with a xdotool command). But nothing happens when I click on the link.

I set X and L option, should I do anything more ?

Regards,
Cyril
If you are starting with a file outside of the protected area (within your home folder, for example), command execution is disabled by default. Add "C" to your options string: kweb -JXLKRC6 ....
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

nlc
Posts: 37
Joined: Mon Sep 15, 2014 2:40 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Oct 05, 2017 9:42 am

gkreidl wrote:
Thu Oct 05, 2017 4:16 am
If you are starting with a file outside of the protected area (within your home folder, for example), command execution is disabled by default. Add "C" to your options string: kweb -JXLKRC6 ....
I think it's the case, I use a system command (located in /usr/bin). I tried the C option and now it works well, thank you very much !!
I looked in the documentation but I have not found the C option, it's why I have not tried it :)

Regards
Cyril

Jayce
Posts: 54
Joined: Sun Jan 29, 2017 5:53 am

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Sun Oct 08, 2017 4:40 pm

I have a couple of questions:

1.) Will this affect any of the files, programs etc. on my system when I install this?
2.) Can I ask what is the size of Kweb Suite?
3.) Is it working fine now in Stretch?

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Mon Oct 09, 2017 6:51 am

Jayce wrote:
Sun Oct 08, 2017 4:40 pm
I have a couple of questions:

1.) Will this affect any of the files, programs etc. on my system when I install this?
2.) Can I ask what is the size of Kweb Suite?
3.) Is it working fine now in Stretch?
1) no
2) Package size is slightly over 4 MB and and most of this is used by the two PDF manuals.
Some additional shared libraries may be installed, but this depends on what you have installed before.
gdebi-core is installed by the install script, because it is the needed for package installation from .DEB files.
Two additional programs are installed: uget (a great downloading tool) and youtube-dl (using pip for installation).
3) Yes. I've discovered one problem so far: Flash support (using a special wrapper for pepperflash) doesn't work, because it is not compatible with GTK+3. I'm considering to switch back to GTK+2 in the next release.
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

nfstoney
Posts: 16
Joined: Fri Jul 21, 2017 2:04 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 11, 2017 8:40 am

Hello,

I have a question about a example of use. To check if it's possible to solve my issue with kweb.
The kweb is very powerfull tool and can use for lots of use cases. Too much cases for a fast overview.

I would like to play a audio/video-stream in omxplayer fullsize (hw accelerated) and overlay a webcontent (Fullsized, F11) with alpha-channel over the video, so you can see the video through the Homepage. The Webcontent is specialwebsite with only alpha-channeled content.
It should be possible to remove the webcontent, so you can see the normal video.

Can I configure kweb for my mentioned above scenario.

Many thanks for your feedback
--
stoney
Raspberry PI Compute Module 3 light, Raspian

tvjon
Posts: 558
Joined: Mon Jan 07, 2013 9:11 am

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 11, 2017 10:12 am

This is actually easier than your previous request, to which I replied, where you talked about two displays.

Kweb doesn't need to be involved.

$ omxplayer

-h --help Print this help
-v --version Print version info
-k --keys Print key bindings
-n --aidx index Audio stream index : e.g. 1
-o --adev device Audio out device : e.g. hdmi/local/both/alsa[:device]
-i --info Dump stream format and exit
-I --with-info dump stream format before playback
-s --stats Pts and buffer stats
-p --passthrough Audio passthrough
-d --deinterlace Force deinterlacing
--nodeinterlace Force no deinterlacing
--nativedeinterlace let display handle interlace
--anaglyph type convert 3d to anaglyph
--advanced[=0] Enable/disable advanced deinterlace for HD videos (default enabled)
-w --hw Hw audio decoding
-3 --3d mode Switch tv into 3d mode (e.g. SBS/TB)
-M --allow-mvc Allow decoding of both views of MVC stereo stream
-y --hdmiclocksync Display refresh rate to match video (default)
-z --nohdmiclocksync Do not adjust display refresh rate to match video
-t --sid index Show subtitle with index
-r --refresh Adjust framerate/resolution to video
-g --genlog Generate log file
-l --pos n Start position (hh:mm:ss)
-b --blank[=0xAARRGGBB] Set the video background color to black (or optional ARGB value)
--loop Loop file. Ignored if file not seekable
--no-boost-on-downmix Don't boost volume when downmixing
--vol n set initial volume in millibels (default 0)
--amp n set initial amplification in millibels (default 0)
--no-osd Do not display status information on screen
--no-keys Disable keyboard input (prevents hangs for certain TTYs)
--subtitles path External subtitles in UTF-8 srt format
--font path Default: /usr/share/fonts/truetype/freefont/FreeSans.ttf
--italic-font path Default: /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf
--font-size size Font size in 1/1000 screen height (default: 55)
--align left/center Subtitle alignment (default: left)
--no-ghost-box No semitransparent boxes behind subtitles
--lines n Number of lines in the subtitle buffer (default: 3)
--win 'x1 y1 x2 y2' Set position of video window
--win x1,y1,x2,y2 Set position of video window
--crop 'x1 y1 x2 y2' Set crop area for input video
--crop x1,y1,x2,y2 Set crop area for input video
--aspect-mode type Letterbox, fill, stretch. Default: stretch if win is specified, letterbox otherwise
--audio_fifo n Size of audio output fifo in seconds
--video_fifo n Size of video output fifo in MB
--audio_queue n Size of audio input queue in MB
--video_queue n Size of video input queue in MB
--threshold n Amount of buffered data required to finish buffering
--timeout n Timeout for stalled file/network operations (default 10s)
--orientation n Set orientation of video (0, 90, 180 or 270)
--fps n Set fps of video where timestamps are not present
--live Set for live tv or vod type stream
--layout Set output speaker layout (e.g. 5.1)
--dbus_name name default: org.mpris.MediaPlayer2.omxplayer
--key-config <file> Uses key bindings in <file> instead of the default
--alpha Set video transparency (0..255)
--layer n Set video render layer number (higher numbers are on top)
--display n Set display to output to
--cookie 'cookie' Send specified cookie as part of HTTP requests
--user-agent 'ua' Send specified User-Agent as part of HTTP requests
--lavfdopts 'opts' Options passed to libavformat, e.g. 'probesize:250000,...'
--avdict 'opts' Options passed to demuxer, e.g., 'rtsp_transport:tcp,...'

For example:

$ omxplayer --alpha 80 some-file

[attachment=0]stoney.jpg[/attachment]
Attachments
stoney.jpg
stoney.jpg (48.53 KiB) Viewed 937 times

nfstoney
Posts: 16
Joined: Fri Jul 21, 2017 2:04 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 11, 2017 11:47 am

I don't would like to give the video a transparency.
I would like to give the browsercontent or the whole browser a transparency because this content is over the video.

My problem to your first hint is that the white background of the browser which is over the video should be replaced to a full transparent background. The white color of the example image should be transparent.
Menu.jpg
Menu.jpg (31.04 KiB) Viewed 925 times
--
stoney
Raspberry PI Compute Module 3 light, Raspian

nfstoney
Posts: 16
Joined: Fri Jul 21, 2017 2:04 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 11, 2017 12:25 pm

I give you a screenshot from an other system where it is running according my descriptions.
Example.JPG
Example.JPG (249.75 KiB) Viewed 910 times
The transparent menu is a website over the whole screen.
Attachments
Example.JPG
Example.JPG (249.75 KiB) Viewed 910 times
--
stoney
Raspberry PI Compute Module 3 light, Raspian

nlc
Posts: 37
Joined: Mon Sep 15, 2014 2:40 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 11, 2017 1:20 pm

You want to do the same thing I wanted to do some week ago. That's not possible to have the browser over the video. My need was to have a text input over the video, but that's not possible with kweb / omxplayer.

nfstoney
Posts: 16
Joined: Fri Jul 21, 2017 2:04 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 11, 2017 1:25 pm

How did you solve it?
--
stoney
Raspberry PI Compute Module 3 light, Raspian

nlc
Posts: 37
Joined: Mon Sep 15, 2014 2:40 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 11, 2017 2:35 pm

I separated the display in 2 zones, a 150px zone on the top of the screen, with the input text, and the same background than the video.
And I modified the video to remove the 150px, and I play it in the bottom of the screen. Fortunately, the top of the initial video was a fixed part, and here is the result :

https://www.youtube.com/watch?v=z8Ix71DoglA

nlc
Posts: 37
Joined: Mon Sep 15, 2014 2:40 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 11, 2017 2:38 pm

The white part on the bottom and on the right is because the final application run on a 1366x768 screen, and mine is 1920x1080

mickae1
Posts: 8
Joined: Sat Jun 28, 2014 2:31 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Oct 19, 2017 10:19 pm

Hi is it possible to use this browser in kiosk mode? I guess that the answer is yes.

But is it safe? I don't want the user to be able to access my system when its in kiosk mode.
I just want my user to be able to browse my web page that all.

How to hide all button, address bar?

Is it possible to show a virtual keyboard?


Micka,

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 23 guests