Adam Cooper Wood

Web Developer

Changing channels on your HDHR Prime Via Mythweb

[ Networking ]
[ Mythtv ]
[ HDHR Prime ]
[ VLC ]
[ webserver ]

In an earlier post, I explained how I use VLC to watch TV instead of MythTV due to the overhead of MythTV on
OSX. VLC streams TV beautifully, and as long as I don't have an upcoming recording, everything works out
fine. I also added a 'play' button to the Mythweb TV listings which communicates to the HDHR Prime and
tells it which channel to stream. It's quite easy. Here's how I do it.

I imagine if you're running Mythweb, you already have a working web server with PHP installed on it.
If you do, adding this code to index.php in a folder called /changechannel in your web folder should work just fine:

When all is said and done, you should have a button below all of your channels with a button to play it. Note, this script will not
open VLC, so it's assuming you've already got it open perhaps with the command line.

NOTE: hacking Mythweb like this is NOT revision friendly. If Mythweb gets updated in the future, you'll have to re-hack
it. This may also fall into legal gray area as I'm technically not using my listings data with MythTV. Use at your own risk!