I do not get any "deprecated" message from youtube in kweb, neither on Jessie nor on Stretch.
The youtube stream address must be put into quotes, if you start omxplayergui from a terminal.johndavies wrote: ↑Thu Jun 28, 2018 10:48 amI 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".
Does playing your channel requires a login?MaryShah wrote: ↑Thu Jun 28, 2018 11:38 amGreat 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
I have tried quoting the stream after the "url" part
Is possible to play my streams?
can you run a test with:
This explains your problem. omxplayerGUI depends on youtube-dl. If youtube-dl cannot extract the video URL, omxplayerGUI cannot play it.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
All I can say is: when omxplayer can play the stream, it can be used with omxplayerGUI.
The kewb suite is designed for desktop use.MaryShah wrote: ↑Fri Jul 06, 2018 4:05 pmI'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__
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 595, in callit
File "/home/pi/kweb/kweb-18.104.22.168-dev/omxplayerguibin/omxplayergui.py", line 903, in on_activate_first
File "/home/pi/kweb/kweb-22.214.171.124-dev/omxplayerguibin/omxplayergui.py", line 1176, in playsong
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
OSError: [Errno 2] No such file or directory
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.MaryShah wrote: ↑Fri Jul 06, 2018 11:59 pmthanks 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
You could use one the the info commands like "position"; if an error is returned, the video is not running any more.MaryShah wrote: ↑Sun Jul 08, 2018 10:34 amthanks
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
set the appropriate --win arguments, e .g 0,0,1919,1079MaryShah wrote: ↑Mon Jul 09, 2018 7:46 pmmanaged 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)
and using the below brings up the player as well as the overlay in full screen
I would just like the overlay stream playing in full screen?