Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Mythweb asx streaming

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


justin.johnson3 at gmail

Dec 10, 2008, 5:10 PM

Post #1 of 7 (1908 views)
Permalink
Mythweb asx streaming

I've recently changed the port that I use to access mythweb through,
from the default of 80 to 7654. I can access everything perfectly, but
when I try and use the asx streaming, the asx file downloads fine, but
contains a pointer that specifies port 80. I've tried setting the 'Force
streaming port' but that has no effect. I've also checked and un-checked
the 'Force HTTP for streaming' box but this also had no effect. I've
seen a few posts about this but nobody seemed to have a solution. Is
there a configuration file somewhere? Or is the asx file generation
hard-coded?

--
--Justin Johnson

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


arizonamythtv at gmail

Dec 11, 2008, 12:05 PM

Post #2 of 7 (1866 views)
Permalink
Re: Mythweb asx streaming [In reply to]

I had the same problem so I just ended up hard coding the port. To fix
your problem, in /modules/stream edit the handler.pl file on line 112
I changed it to ':'.portnumber where portnumber is the actual port
number.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


bobbygill at rogers

Dec 11, 2008, 12:16 PM

Post #3 of 7 (1868 views)
Permalink
Re: Mythweb asx streaming [In reply to]

On Thu, Dec 11, 2008 at 3:05 PM, John H <arizonamythtv [at] gmail> wrote:

> I had the same problem so I just ended up hard coding the port. To fix
> your problem, in /modules/stream edit the handler.pl file on line 112
> I changed it to ':'.portnumber where portnumber is the actual port
> number.
>

I have never gotten streaming to work, I am trying to follow this, here's an
excerpt from the handler.pl I have:

# ASX mode?
if ($ENV{'REQUEST_URI'} =~ /\.asx$/i) {
# URI back to this file? We just need to take the current URI and strip
# off the .asx suffix.
my $uri = ($ENV{'HTTPS'} || $ENV{'SERVER_PORT'} == 443)
? 'https'
: 'http';
my $serverAddr = $ENV{'HTTP_X_FORWARDED_HOST'} ||
$ENV{'SERVER_NAME'} || $ENV{'SERVER_ADDR'};
$uri .= '://'.$serverAddr.':'.$ENV{'SERVER_PORT'}
.$ENV{'REQUEST_URI'};



The second last line is line 112. What exactly should it look like? I have
replaced "SERVER_PORT" with my port, and it still looked at port 80. Then I
changed SERVER_PORT to 'SERVER_PORT'.port# but no go. I also tried replacing
the 443 on the fifth line above to my port #, it still looked for port 80.


Thanks
Bob


support at drdos

Dec 11, 2008, 12:19 PM

Post #4 of 7 (1862 views)
Permalink
Re: Mythweb asx streaming [In reply to]

Bobby Gill wrote:
> my $serverAddr = $ENV{'HTTP_X_FORWARDED_HOST'} ||
> $ENV{'SERVER_NAME'} || $ENV{'SERVER_ADDR'};
> $uri .= '://'.$serverAddr.':'.$ENV{'SERVER_PORT'}
> .$ENV{'REQUEST_URI'};

I just did this:

$uri .= '://'.$serverAddr.':'.8080

It fixed my issues.

Thanks!




--

Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


bobbygill at rogers

Dec 11, 2008, 12:29 PM

Post #5 of 7 (1856 views)
Permalink
Re: Mythweb asx streaming [In reply to]

On Thu, Dec 11, 2008 at 3:19 PM, Doug Lytle <support [at] drdos> wrote:

> Bobby Gill wrote:
> > my $serverAddr = $ENV{'HTTP_X_FORWARDED_HOST'} ||
> > $ENV{'SERVER_NAME'} || $ENV{'SERVER_ADDR'};
> > $uri .= '://'.$serverAddr.':'.$ENV{'SERVER_PORT'}
> > .$ENV{'REQUEST_URI'};
>
> I just did this:
>
> $uri .= '://'.$serverAddr.':'.8080
>
> It fixed my issues.
>
> Thanks!
>
>
>
Holy crap! It works! Well I'll be diggity damned, thanks so much!

I just tried it in VLC and it prompted for the Mythweb login/pass, and
works. Fiiiinally! Thanks :)


Thanks
Bob


arizonamythtv at gmail

Dec 11, 2008, 1:32 PM

Post #6 of 7 (1856 views)
Permalink
Re: Mythweb asx streaming [In reply to]

My syntax is the same as support [at] drdo as this'll fix the issue.
You'll want to save a copy of the edited file because if you do an
upgrade the upgrade will overwrite your edited file.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


justin.johnson3 at gmail

Dec 11, 2008, 2:54 PM

Post #7 of 7 (1850 views)
Permalink
Re: Mythweb asx streaming [In reply to]

> I had the same problem so I just ended up hard coding the port. To fix
> your problem, in /modules/stream edit the handler.pl file on line 112
> I changed it to ':'.portnumber where portnumber is the actual port
> number.
>

Sweetness! That did the trick. I figured it was somewhere in the modules
folder just couldn't find it. Thanks!

--Justin
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.