Page 1 of 1
http-interface and databases
Posted: 02 Nov 2005 17:48
by johnnylq
Hi everyone..
I'm making a small interface to control the VLC(exactly to control the VLM) using the http-interface, changing something in the pages into the /share/http/ directories..
Well I'd like to add interactivity with daatabases like mysql; but I know that http-interface hasn't support for php pages...
Can anyone tell me how I can do this interactivity???
THanks in advance
Posted: 02 Nov 2005 21:35
by johnnylq
Hi developers:
Well finally I found the answers to my questions; if you are interested to use the php-cgi with the http-interface you have to do something like this:
1. start the vlc like this:
# vlc -vvv --extraintf http --http-handlers php=/usr/bin/php -I telnet ---....
2. In your *.php pages you have to put something like this(your php script must contain the header("Content-Type: text") ):
<?php echo("Content-Type: text/html\n\n" ); ?>
<?php.......
....
Well it's all ..Ithink so
Thanks "Zorglub","Peret"
Re:
Posted: 07 Dec 2005 13:56
by Scott JHU-ECE
You're trying, then, to control VLC through PHP? I'm attempting to do the same. Specifically, through the VLM telnet interface. Any particular reason you chose to use http over telnet? If you have any more insight as to how you did this, it'd be much appreciated.
Posted: 07 Dec 2005 15:14
by johnnylq
hi Scott JHU-ECE.
Well I chose the http interface because, I'm making a video streaming system with VLC and I want to control VLC through HTTP, using servers like mysql,ftpand so on;
well I have worked using php and javascript to control the VLC or VLM, but only for simple things, specially to work with mysql.
Posted: 09 Dec 2005 11:46
by Vlc username
Hey gays .. who make sompting whit this
(http interface) ..
just upload somewere to can everyone to view.
I want to Add a MRL (Media Resource Locator) to the playlist. WHit all propartice like
And all this form the web interface
If some one resolv this prob.. to help me.
there is some html tags
Code: Select all
<form method="get" action="?" enctype="text/plain" >
<td>Add a MRL (Media Resource Locator) to the playlist</td>
<td>
<input type="hidden" name="control" value="add" />
<input type="text" name="mrl" size="40" />
<input type="submit" value="Add" />
</td>
</form>
[/i][/color]
bla.. bla.. where i can find all varibles for this parm
some domumentation for this functuons
vlchttpinterface
Code Example?
Posted: 13 Dec 2005 16:34
by Scott JHU-ECE
If I could trouble you to cut and paste a rudimentary code example of what you've got so far, that'd be great!
Re:
Posted: 13 Dec 2005 16:38
by Scott JHU-ECE
I'm writing a video conferencing application that uses PHP and MySQL, to bring up a nice GUI as a front end for VLC. Am controlling VLC through embedded browser objects, but on the server end, I just have VLC acting as a port relay. It'd be nice to do this dynamically through VLM; i.e. when a user connects, it relays their stream, and closes the port when a user is not connected.