HTTP Redirection

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
kranthi117
New Cone
New Cone
Posts: 7
Joined: 28 Feb 2009 12:00

HTTP Redirection

Postby kranthi117 » 30 Aug 2009 09:37

Hi all,
By default VLC Ignores insecure HTTP redirection to non HTTP protocol
how do i override this ?

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: HTTP Redirection

Postby ivoire » 31 Aug 2009 17:37

That's not possible, but an option can be added if you need it.
Why do you need to follow such a redirection ?

kranthi117
New Cone
New Cone
Posts: 7
Joined: 28 Feb 2009 12:00

Re: HTTP Redirection

Postby kranthi117 » 31 Aug 2009 19:01

cant I do that for http://localhost even ? If I am correct this was a default action for < 0.5.2
http://www.videolan.org/developers/vlc/NEWS
http://mailman.videolan.org/pipermail/v ... 18214.html

Any ways what I want to do is,
$ vlc http://localhost/test.php --repeat
where http://localhost/test.php redirects to file:///file1.mp3 or file:///file2.mp3 ...(the file name keeps on changing....)

I found a different workaround (and this is working fine), but that is not exactly what I want to do...
<?php
$path = 'file1.mp3';
header('Content-type: audio/mpeg');
header('Content-length: ' . filesize($path));
print file_get_contents($path);
?>

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: HTTP Redirection

Postby ivoire » 02 Sep 2009 09:20

I can add an option for this (even I don't really like to add options like this :)). Anyway this option will be available (if made) for the release of the 1.1 branch which is not planned for the moment.
This meens that you won't be able to do it until the release (or if you compile your own vlc).

Best regards


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests