[vlc-devel] Re: http-Interface and PHP

PERET Pierre-Hugues ph.peret at free.fr
Mon Mar 20 11:22:34 CET 2006

At 11:03 20/03/2006 +0100, you wrote:
>PERET Pierre-Hugues schrieb:
>>With more details you can use http-handlers to use server side scripting 
>>(perl, php or other).
>>In past msg :
>>1. start the vlc like this:
>># vlc -vvv --extraintf http --http-handlers php=/usr/bin/php -I telnet 
>OK - thats simple...
>>2. In yours *.php pages you have to put something like this:(your php
>>script must contain the header("Content-Type: text") )
>Sending a header is simple also...
>><?php echo("Content-Type: text/html\n\n" ); ?>
>But why should I send a text "Content-Type: text/html"??? Where this is 
>And where I can find the list of commands I can use with PHP now to 
>control the VLC?

In fact you use php and vlc macro and rpn , php code is the first to be 
handled, and then vlc tags.
So you control vlc with vlc tags as before, and you use php to handle what 
you want.

>>Just beware of the line "Content-Type" its case sensitive.
>Yes - sure it is in the header.
>So - it's nice to see, that there is an API to control it via PHP etc, but 
>I don't know how exactly yet.
>Yours Sincerely
>Peter Wendorff
>This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
>To unsubscribe, please read http://developers.videolan.org/lists.html

This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html

More information about the vlc-devel mailing list