Page 1 of 1

PHP & VLC media player.

Posted: 24 Jan 2005 15:07
by ArmadaNL
Doesn't anyone know how to refer to a moviefile in a php page with VLC accepting it?

When I use <?php header("Location: movie.avi"); ?> IE will simply download to movie, but VLC can't use it as a stream.
The weird part is that the link to the file does appear in VLC promptly. So it does know there is a reference, but isn't willing to open it....

Thanx in advance!

Posted: 25 Jan 2005 01:33
by The DJ
You are doing http-header redirect or something?
I don't think Location: is something VLC accepts. Isn't there another form of http redirecting you can use?

Posted: 25 Jan 2005 12:12
by ArmadaNL
Isn't there another form of http redirecting you can use?
The only other form I know of is include("page.php");, but that doesn't work for movie files... (only for other webpages)

Posted: 04 Apr 2006 18:16
by christian.roessler
Isn't there another form of http redirecting you can use?
The only other form I know of is include("page.php");, but that doesn't work for movie files... (only for other webpages)
take a look at php.net -> header in function list
you can send additional header information to make a browser/app save a file, download it or make it streaming..

its like
header("content-type: application/octet-stream");
header("content-disposition: attachment");
header("...");
...
and so on

just play a bit, more information can be found in google.
it just wont work with: include() or header location: movie.mpg


greetz,
christian.roessler

Posted: 20 Apr 2006 07:47
by Guest
are you using firefox, ive noticed firefox chooses to dowload streams allot of the times
just my .02$