Mythtv asx stream port change

Posted by Ryan on January 23, 2010 in ComputerInfo, Entertainment, Linux

I run mythweb on a different port (other than 80) and this change seems to have made the asx stream function just about worthless.  When clicking on the asx link from the browser, it still sends out the asx stream file as port 80.  (you can check this by opening the asx file with a text editor)

I finally have this figured out.  Thanks to this link pointing me in the right direction

http://www.gossamer-threads.com/lists/mythtv/users/361444

Here’s how to fix it!  Lets say you run mythweb on port 8080, to update the asx config you have to edit two files on the mythtv box:

/var/www/html/mythweb/modules/stream/handler.pl

From this:    $uri .= ‘://’.$serverAddr.’:’.$ENV{’SERVER_PORT’}

To this:    $uri .= ‘://’.$serverAddr.’:’.8080

/usr/share/mythweb/modules/stream/stream_asx.pl

From this:     $uri .= ‘://’.$serverAddr.’:’.$serverPort

To this:     $uri .= ‘://’.$serverAddr.’:’.8080

Ok, try it out!  Refresh the page and it should work..no apache restart necessary.

Write a Comment on Mythtv asx stream port change

Subscribe

Follow comments by subscribing to the Mythtv asx stream port change Comments RSS feed.

More

Read more posts by Ryan

Show the architecture of installed rpm packages cannot mount cifs share from Fedora or Ubuntu