I have nothing against the way MythTV format is setup for (recording scheduled programming), but when I go through seemingly 100's of cable channels and not finding anything I want to watch, I like the idea of having another source for TV shows and movies. Initiating a browser from the MythTV menu only helps the enjoyment, in my opinion. Streaming programs, while they are available, is sort of a hybrid recording. Plus, if you install this on multiple MythTV frontends and register/log into TubiTV on each frontend, you can stop watching a stream on one TV and pickup your show on another TV.
If similar/better instructions are already posted here previously, tough , Sorry, I couldn't find them :-/
First, I installed a few packages. Chromium Browser, while not my first choice, seems to give me better results streaming:
Code: Select all
sudo apt install chromium-browser xbindkeys xdotool
Code: Select all
cp /usr/share/mythtv/themes/[Your_Current_Theme]/mainmenu.xml ~/.mythtv/mainmenu.xml
mkdir ~/.mythtv/stream
Code: Select all
<button>
<type>Tubi_TV</type>
<text>Tubi TV</text>
<action>EXEC ~/.mythtv/stream/tubitv</action>
</button>
Code: Select all
#!/bin/bash
xbindkeys -f ~/.xbindkeysrc
xscreensaver-command -exit
/usr/bin/chromium-browser https://tubitv.com/home/ --start-fullscreen
killall xbindkeys #Assumes xbindkeys is not needed outside of this setup.
xscreensaver -nosplash &
exit
Code: Select all
"~/.mythtv/stream/quitkey"
XF86WWW
"~/.mythtv/stream/backpage"
XF86BACK
"~/.mythtv/stream/reload"
XF86Tools
quitkey:
Code: Select all
#!/bin/bash
sleep 0.4
xdotool key ALT+F4
exit
Code: Select all
#!/bin/bash
xdotool key Alt+Left
exit
Code: Select all
#!/bin/bash
xdotool key ctrl+r
exit
Notes: When selecting a stream to watch from Tubi TV, a double left-button mouse click will enlarge to fullscreen. If you double-click during a commercial, a new browser tab will open up to the commercials contents.
I think thats it. Enjoy! If I forgot something, I will edit this post to fix.