I modified the MythTV menu to launch Chrome in kiosk mode and open YouTube at the TV-formatted site (https://www.youtube.com/tv#/).nexzzt wrote:What application/plugin are you using for youtube? I am interesting in setting that up.heyted wrote:I have it the other way around with XBMC installed on Mythbuntu. It was fairly easy to set up.SpinnerRow wrote:Using OpenELEC 4.0.2 with XBMC. Whenever I go to TV it says there are no PVRs enabled but it is enabled in my PVR Addons. I'm using an HDHomeRun Prime and XBMC and MythTV are on the same box.
http://www.youtube.com/watch?v=Ds1NkMXNF1M
Thanks
The following is what I added in mainmenu.xml:
Code: Select all
<button>
<type>TV_WATCH_TV</type>
<text>YouTube</text>
<description>Launch Chrome and open YouTube</description>
<action>EXEC /home/ted/.mythtv/youtube_leanback</action>
</button>
Code: Select all
irxevent /home/ted/.mythtv/youtube_leanback_lircrc &
unclutter -idle 5 &
google-chrome --kiosk https://www.youtube.com/tv#/browse
killall irxevent
killall unclutter
I am not sure if unclutter needs to be used the way it is used above, but it works to hide the cursor.
The following is my youtube_leanback_lircrc file:
Code: Select all
begin
prog = irxevent
button = KEY_PLAY
repeat = 0
config = Key space CurrentWindow
end
begin
prog = irxevent
button = KEY_PAUSE
repeat = 0
config = Key space CurrentWindow
end
begin
prog = irxevent
button = KEY_LEFT
repeat = 0
config = Key Left CurrentWindow
end
begin
prog = irxevent
button = KEY_RIGHT
repeat = 0
config = Key Right CurrentWindow
end
begin
prog = irxevent
button = KEY_STOP
repeat = 0
config = Key ctrl-w CurrentWindow
end
begin
prog = irxevent
button = KEY_BACK
repeat = 0
config = Key Escape CurrentWindow
end
begin
prog = irxevent
button = KEY_UP
repeat = 0
config = Key Up CurrentWindow
end
begin
prog = irxevent
button = KEY_DOWN
repeat = 0
config = Key Down CurrentWindow
end
begin
prog = irxevent
button = KEY_OK
repeat = 0
config = Key Return CurrentWindow
end
begin
prog = irxevent
button = KEY_ENTER
repeat = 0
config = Key F11 CurrentWindow
end
