Rascas
Posts: 501
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed May 30, 2018 5:27 pm

On latest Stretch with Desktop Image, only kweb installed:

Code: Select all

[email protected]:~ $ dpkg --get-selections | grep dbus
dbus						install
dbus-user-session				install
dbus-x11					install
libdbus-1-3:armhf				install
libdbus-glib-1-2:armhf				install
libnih-dbus1					install
libqt5dbus5:armhf				install
python-dbus					install
python3-dbus					install
[email protected]:~ $ 

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed May 30, 2018 5:38 pm

Rascas wrote:
Wed May 30, 2018 5:27 pm
On latest Stretch with Desktop Image, only kweb installed:

Code: Select all

[email protected]:~ $ dpkg --get-selections | grep dbus
dbus						install
dbus-user-session				install
dbus-x11					install
libdbus-1-3:armhf				install
libdbus-glib-1-2:armhf				install
libnih-dbus1					install
libqt5dbus5:armhf				install
python-dbus					install
python3-dbus					install
[email protected]:~ $ 
Nothing suspicious, nothing missing. This is really strange.
Do you always test with the same video file? If so, try another one.
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

Rascas
Posts: 501
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed May 30, 2018 5:51 pm

Sorry for the trouble, it was that specific video that I was testing, others seem to work fine. Strange that that one works in Jessie but not on Stretch. Thanks for the help.

thelastprime
Posts: 1
Joined: Wed Jun 27, 2018 12:45 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Jun 27, 2018 12:47 pm

Recently, youtube stopped working in kweb for me. Now youtube says kweb is deprecated but I can't update anything. Any fix?

johndavies
Posts: 182
Joined: Fri Dec 20, 2013 1:00 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Jun 28, 2018 7:41 am

It does appear that the Minimal Kiosk Browser can no longer play youtube videos from the youtube site. It is an easy problem to get around if you have youtube-dl. This program allows you to save and rename youtube stream addresses. omxplayergui will play the .mp4 outputs but not the .webm one. If you have youtube-dl stored on your Pi, pmytd (Poor Man's Youtube Downloader) provides a graphical user interface for loading and saving youtube stream addresses. By default it saves files to the home directory but you can modify the program to save files to the directory of your choice. Luckily I found the email address of the author, told him of my wish to save the files elsewhere and he sent me details of how to modify the program. I used nano to alter it and typed in 'sudo nano /usr/local/bin/pmytd. Change the line numbers 466 & 470 from DLD_DIR="${DIR}/%(title)s.%(ext)s" to DLD_DIR="/media/pi/usbdisc/WebVids/%(title)s.%(ext)s"
Save the changes. That's it. pmytd will now save the files to /media/pi/usbdisc/WebVids directory. A bonus with pmytd is that it picks up the title of the youtube stream and adds it to the saved videofile. Use Google to find download locations for youtube-dl and pmytd.
Last edited by johndavies on Thu Jun 28, 2018 10:32 am, edited 1 time in total.

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Jun 28, 2018 9:58 am

thelastprime wrote:
Wed Jun 27, 2018 12:47 pm
Recently, youtube stopped working in kweb for me. Now youtube says kweb is deprecated but I can't update anything. Any fix?
I do not get any "deprecated" message from youtube in kweb, neither on Jessie nor on Stretch.
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

johndavies
Posts: 182
Joined: Fri Dec 20, 2013 1:00 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Jun 28, 2018 10:48 am

I have just checked the Minimal Kiosk Browser site again and I cannot use it to play youtube streams. If I type omxplayergui and the stream address into the Terminal and press "Enter" , nothing happens. Yet I have a very simple program which allows me to enter youtube addresses and plays them with omxplayer and youtube-dl which work with no problems. When the youtube stream ends or is stopped, the request to enter a youtube address appears again. I have not seen any messages referring to"deprecated".
Last edited by johndavies on Fri Jun 29, 2018 5:37 am, edited 1 time in total.

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Jun 28, 2018 11:21 am

johndavies wrote:
Thu Jun 28, 2018 10:48 am
I have just checked the Minimal Kiosk Browser site again and I cannot use it to play youtube streams. If I type omxplayergui and the stream address into the Terminal and press "Enter" , nothing happens. Yet I have a very simple program which allows me to enter youtube addresses and plays them with omxplayer which works with no problems. When the youtube stream ends or is stopped, the request to enter a youtube address appears again. I have not seen any messages referring to"deprecated".
The youtube stream address must be put into quotes, if you start omxplayergui from a terminal.

The deprecated message may be displayed in the browser, but I haven't seen it for a long time.
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

MaryShah
Posts: 26
Joined: Sat May 06, 2017 11:07 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Jun 28, 2018 11:38 am

Great project and great effort with everything done so far..!
My project involves running a browser in kiosk mode to display either
1. YouTube video
2. Carousel of images
3. Live Stream

These are displayed when certain events are triggered.
I have tried using kweb as a browser but it doesn't function, my page uses a lot of ajax polling to monitor for events - I suspect that's why
I have to resort to chromium-browser which works well apart from it hogging memory

I would normally play the Live Stream or video using embedding native within chromium but have now decided to use omxplayergui

After reading the manual I have tried to use the below command to play my live stream in the chromium browser but it says "no video".

http://localhost:9192/play?url=https:// ... hannel=<my channel ID>

using a "normal" YouTube link works fine

If try to use Twitch

http://localhost:9192/play?url=%27https ... hannel=<my channel name>

I get the same issue "no video"

using the above links on their own work fine:

https://www.youtube.com/embed/live_stream?channel=<my channel ID>
https://player.twitch.tv/?channel=<my channel name>



The goal is to embed my stream into a iframe src which dynamically changes with omxplayergui opening and closing when needed

<iframe src="http://localhost:9192/play?url=https:// ... hannel=<my channel ID>&omxoptions=--win;200,140,1800,1040;stop" width="0" height="0" name="video"></iframe>

I have the server started in silent mode
#bgstart_ytdl_server.sh &
I have tried quoting the stream after the "url" part

Is possible to play my streams?

Question 2
Is it possible to close/open omxplayergui using javascript?

Question 3
the manual mentions (page 19) that when omxplayergui is running then all activity on the webpage stops (JavaScript etc) is it possible to keep all that running whilse the player is playing? As I still need to monitor for events in the background


thank you

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Jun 28, 2018 12:04 pm

MaryShah wrote:
Thu Jun 28, 2018 11:38 am
Great project and great effort with everything done so far..!
My project involves running a browser in kiosk mode to display either
1. YouTube video
2. Carousel of images
3. Live Stream

These are displayed when certain events are triggered.
I have tried using kweb as a browser but it doesn't function, my page uses a lot of ajax polling to monitor for events - I suspect that's why
I have to resort to chromium-browser which works well apart from it hogging memory

I would normally play the Live Stream or video using embedding native within chromium but have now decided to use omxplayergui

After reading the manual I have tried to use the below command to play my live stream in the chromium browser but it says "no video".

http://localhost:9192/play?url=https:// ... hannel=<my channel ID>

using a "normal" YouTube link works fine

If try to use Twitch

http://localhost:9192/play?url=%27https ... hannel=<my channel name>

I get the same issue "no video"

using the above links on their own work fine:

https://www.youtube.com/embed/live_stream?channel=<my channel ID>
https://player.twitch.tv/?channel=<my channel name>



The goal is to embed my stream into a iframe src which dynamically changes with omxplayergui opening and closing when needed

<iframe src="http://localhost:9192/play?url=https:// ... hannel=<my channel ID>&omxoptions=--win;200,140,1800,1040;stop" width="0" height="0" name="video"></iframe>

I have the server started in silent mode
#bgstart_ytdl_server.sh &
I have tried quoting the stream after the "url" part

Is possible to play my streams?

Question 2
Is it possible to close/open omxplayergui using javascript?

Question 3
the manual mentions (page 19) that when omxplayergui is running then all activity on the webpage stops (JavaScript etc) is it possible to keep all that running whilse the player is playing? As I still need to monitor for events in the background


thank you
Does playing your channel requires a login?

Q2:
Yes, you could set the src of an iframe to a matching URL using Javascript.

Q3: this is only true, if you use the play link which forwards the stream link to the youtube-dl-server. It is not true for embedded 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

MaryShah
Posts: 26
Joined: Sat May 06, 2017 11:07 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Jun 28, 2018 12:20 pm

no login is required for both twitch and youtube...

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Jun 28, 2018 12:34 pm

MaryShah wrote:
Thu Jun 28, 2018 12:20 pm
no login is required for both twitch and youtube...
can you run a test with:
youtube-dl -f best -g youtube-url
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

MaryShah
Posts: 26
Joined: Sat May 06, 2017 11:07 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Jun 28, 2018 2:38 pm

#youtube-dl -f best -g https://www.youtube.com/embed/live_stre ... <channelID>

#youtube-dl -f best -g https://player.twitch.tv/?channel=<channel ID>
ERROR: <channelID> is offline

#youtube-dl -f best -g 'https://play.streamingvideoprovider.com ... <channelID>'
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: https://play.streamingvideoprovider.com ... <channelID>

the first link returns a blank
the second returns an error (which is correct as the channel is currently offline i.e. nothing is being streamed)
the third is a link for a live stream by streamingvideoprovider

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Jun 28, 2018 4:12 pm

MaryShah wrote:
Thu Jun 28, 2018 2:38 pm
#youtube-dl -f best -g https://www.youtube.com/embed/live_stre ... <channelID>

#youtube-dl -f best -g https://player.twitch.tv/?channel=<channel ID>
ERROR: <channelID> is offline

#youtube-dl -f best -g 'https://play.streamingvideoprovider.com ... <channelID>'
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: https://play.streamingvideoprovider.com ... <channelID>

the first link returns a blank
the second returns an error (which is correct as the channel is currently offline i.e. nothing is being streamed)
the third is a link for a live stream by streamingvideoprovider
This explains your problem. omxplayerGUI depends on youtube-dl. If youtube-dl cannot extract the video URL, omxplayerGUI cannot play it.
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

MaryShah
Posts: 26
Joined: Sat May 06, 2017 11:07 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Fri Jun 29, 2018 1:24 pm

okay
if I'm able to get the m3u8 link for the above streams will omxplayerGUI be able to play that?

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Fri Jun 29, 2018 4:18 pm

MaryShah wrote:
Fri Jun 29, 2018 1:24 pm
okay
if I'm able to get the m3u8 link for the above streams will omxplayerGUI be able to play that?
All I can say is: when omxplayer can play the stream, it can be used 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

johndavies
Posts: 182
Joined: Fri Dec 20, 2013 1:00 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Sat Jun 30, 2018 9:50 am

The lastprime wrote that he could not access youtube from the kweb site. johndavies said that he could not do this either.

I seem to have found an answer to the problem. Every time my Pi is switched on Javascript is enabled and attempting to play a youtube file from within kweb results in a blank youtube screen and a continuous "loading" message. If you go to the Javascript symbol at the top of the kweb screen and disable it by clicking on it or tying in the ALT command, the youtube stream begins to play. In my case the problem may have been caused by a very recent update to a Chrome TV extension which I never use.

MaryShah
Posts: 26
Joined: Sat May 06, 2017 11:07 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Fri Jul 06, 2018 4:05 pm

I've install stretch-lite on a Raspi 3
I've install kweb as per instructions on this forum with the additional below package

sudo apt-get install python-tk

I can start the omxplayerGUI no problems and it displays fine
Whenever I intend to play a file - I get the below error with a blank screen

Are there any requirements for stretch-lite ? (maybe missing package?)
(same m3u8 file plays file on raspian stretch desktop)


Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1545, in __call__
return self.func(*args)
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 595, in callit
func(*args)
File "/home/pi/kweb/kweb-1.7.9.8-dev/omxplayerguibin/omxplayergui.py", line 903, in on_activate_first
File "/home/pi/kweb/kweb-1.7.9.8-dev/omxplayerguibin/omxplayergui.py", line 1176, in playsong
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Fri Jul 06, 2018 4:19 pm

MaryShah wrote:
Fri Jul 06, 2018 4:05 pm
I've install stretch-lite on a Raspi 3
I've install kweb as per instructions on this forum with the additional below package

sudo apt-get install python-tk

I can start the omxplayerGUI no problems and it displays fine
Whenever I intend to play a file - I get the below error with a blank screen

Are there any requirements for stretch-lite ? (maybe missing package?)
(same m3u8 file plays file on raspian stretch desktop)


Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1545, in __call__
return self.func(*args)
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 595, in callit
func(*args)
File "/home/pi/kweb/kweb-1.7.9.8-dev/omxplayerguibin/omxplayergui.py", line 903, in on_activate_first
File "/home/pi/kweb/kweb-1.7.9.8-dev/omxplayerguibin/omxplayergui.py", line 1176, in playsong
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
The kewb suite is designed for desktop use.
In line 1176 omxplayer is started. It seems to be missing.
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

MaryShah
Posts: 26
Joined: Sat May 06, 2017 11:07 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Fri Jul 06, 2018 11:59 pm

thanks working fine after installing omxplayer

I'm showing my live m3u8 stream from the chromium-browser using iframes

1. Is there another way to stop my live stream (i.e close the omxplayerGUI window) - using http://192.168.1.6:9192/omxcmd?cmd=stop although returns "ok" - doesnt actually close the window the stream keeps playing

2. Is there a way to start the video without a screen refresh? with javascript of something? In a scenario where the encoder stops running and there is no live stream but it starts up again a few seconds later.

thanks

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Sat Jul 07, 2018 4:14 am

MaryShah wrote:
Fri Jul 06, 2018 11:59 pm
thanks working fine after installing omxplayer

I'm showing my live m3u8 stream from the chromium-browser using iframes

1. Is there another way to stop my live stream (i.e close the omxplayerGUI window) - using http://192.168.1.6:9192/omxcmd?cmd=stop although returns "ok" - doesnt actually close the window the stream keeps playing

2. Is there a way to start the video without a screen refresh? with javascript of something? In a scenario where the encoder stops running and there is no live stream but it starts up again a few seconds later.

thanks
I have noticed with some live streams omxplayer responses to keyboard or dbus commands are either delayed or sometimes they don't work at all.
This may be the cause of the problem. You might try the /stopall command which actually kills all omxplayer processes.

Starting the video fromk Javascript: set the src attribute of the iframe.
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

MaryShah
Posts: 26
Joined: Sat May 06, 2017 11:07 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Sun Jul 08, 2018 10:34 am

thanks
http://192.168.1.6:9192/stopall
works well....

is there a way I can test in javascript whether the live stream is playing? i.e. is the omxplayerGUI window showing?
Regularly using the javascript src to start the video keeps spawning a new instance in the background when the original video is still playing.

I'm trying to tackle the problem of not running a refresh if the live stream stops - this would happen in a situation where there is no way for the kiosk application to know if the live stream has stopped

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Sun Jul 08, 2018 10:53 am

MaryShah wrote:
Sun Jul 08, 2018 10:34 am
thanks
http://192.168.1.6:9192/stopall
works well....

is there a way I can test in javascript whether the live stream is playing? i.e. is the omxplayerGUI window showing?
Regularly using the javascript src to start the video keeps spawning a new instance in the background when the original video is still playing.

I'm trying to tackle the problem of not running a refresh if the live stream stops - this would happen in a situation where there is no way for the kiosk application to know if the live stream has stopped
You could use one the the info commands like "position"; if an error is returned, the video is not running any more.
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

MaryShah
Posts: 26
Joined: Sat May 06, 2017 11:07 pm

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Mon Jul 09, 2018 7:46 pm

managed to get this somewhat working for me now - thanks for your help
how can I get a full screen using omxoptions in my iframe?

using the below doesn't quite cover the whole screen (i expect this)

https://localhost:9192/play?url=http://<my server>/live/test/playlist.m3u8&omxoptions=--win;300,140,1900,1040

and using the below brings up the player as well as the overlay in full screen

http://localhost:9192/play?url=http://<my server>:8081/live/test/playlist.m3u8

I would just like the overlay stream playing in full screen?

thanks

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

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Mon Jul 09, 2018 8:29 pm

MaryShah wrote:
Mon Jul 09, 2018 7:46 pm
managed to get this somewhat working for me now - thanks for your help
how can I get a full screen using omxoptions in my iframe?

using the below doesn't quite cover the whole screen (i expect this)

https://localhost:9192/play?url=http://<my server>/live/test/playlist.m3u8&omxoptions=--win;300,140,1900,1040

and using the below brings up the player as well as the overlay in full screen

http://localhost:9192/play?url=http://<my server>:8081/live/test/playlist.m3u8

I would just like the overlay stream playing in full screen?

thanks
set the appropriate --win arguments, e .g 0,0,1919,1079
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 “Raspbian”