Recent patches & proxy servers

John Crisp jcrisp at safeandsoundit.co.uk
Tue Oct 23 21:42:54 EDT 2012


Hi,

I have just installed the updated files. After my previous missives, it
is running Ok on my server.

Recording via the proxy server works well.

In the Recording screen I can now play a recorded file happily from the
browser (I had to add the vlc firefox plugin) using the PlayDirect link

I made couple of small changes to the cgi file so that the links would
open in a new window :

Lines 2886 and 2896 add :  -target=>'_blank'

e.g.

# PlayDirect - depends on browser support
$links .= a( { -id=>'nowrap', -class=>$search_class, -target=>'_blank',
-title=>"Stream file into browser", -href=>build_url_direct( '',
$prog{$pid}->{type}, $pid, $prog{$pid}->{mode},
$opt->{STREAMTYPE}->{current}, $opt->{STREAMTYPE}->{current},
$opt->{HISTORY}->{current}, $opt->{BITRATE}->{current},
$opt->{VSIZE}->{current}, $opt->{VFR}->{current} ) }, 'PlayDirect'
).'<br />';
			}

This could be added to the other links.

The only problem I have now is playing a direct stream from the Play
menu. I think that this might be ignoring the proxy server settings but
it could be to do with the plugin.

If I have the plugin enabled I get a URL as follows :

Play (with VLC plugin enabled)
http://my.server.net/general/cgi-bin/get_iplayer.cgi?ACTION=playlist&SEARCHFIELDS=pid&SEARCH=b01ngwqj&MODES=flashaachigh%2Cflashaacstd%2Cflashaudio%2Cflashhigh%2Cflashstd%2Cflashnormal%2Crealaudio%2Cflashaaclow&PROGTYPES=tv&OUTTYPE=out.flv&STREAMTYPE=&BITRATE=&VSIZE=&VFR=

If I disable the plugin the URL becomes :

http://my.server.net/general/cgi-bin/get_iplayer.cgi

The browser then tries to open / download a file named get_iplayer.cgi
containing the following :

#EXTM3U

#EXTINF:-1,tv -  - 12 Again: Series 2 - Episode 6 - The Scissor Sisters
reveal what they were like at 12.
http://my.server.net:80/general/cgi-bin/get_iplayer.cgi?ACTION=stream&PROGTYPES=tv&PID=b01myl0t&MODES=flashaachigh%2Cflashaacstd%2Cflashaudio%2Cflashhigh%2Cflashstd%2Cflashnormal%2Crealaudio%2Cflashaaclow&OUTTYPE=b01myl0t.flv&STREAMTYPE=&BITRATE=&VSIZE=&VFR=

I have added the proxy url to the options file both in the default
directory specified in the Apache conf file and in
/etc/get_iplayer/options but I can't see this is being used by get_iplayer

I put a logger line in get_iplayer at about line 348 and it would appear
the following are set :

$profile_dir : /path/to my/.get_iplayer
$optfile_system : /etc/get_iplayer/options

But I have a feeling that the proxy server is not enabled for streaming
play.

Any help on this would be appreciated !

B. Rgds
John



More information about the get_iplayer mailing list