http-interface and databases

About encoding, codec settings, muxers and filter usage
johnnylq
Blank Cone
Blank Cone
Posts: 40
Joined: 09 Sep 2005 01:36
Location: Peru

http-interface and databases

Postby johnnylq » 02 Nov 2005 17:48

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

johnnylq
Blank Cone
Blank Cone
Posts: 40
Joined: 09 Sep 2005 01:36
Location: Peru

Postby johnnylq » 02 Nov 2005 21:35

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"

Scott JHU-ECE

Re:

Postby Scott JHU-ECE » 07 Dec 2005 13:56

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.

johnnylq
Blank Cone
Blank Cone
Posts: 40
Joined: 09 Sep 2005 01:36
Location: Peru

Postby johnnylq » 07 Dec 2005 15:14

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.

Vlc username

Postby Vlc username » 09 Dec 2005 11:46

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

#EXTM3U
#EXTINF:0,The.Film.Name
#EXTVLCOPT:sub-file=http://url.to.subs/The.Film.srt
#EXTVLCOPT:subsdec-encoding=System Default
#EXTVLCOPT:subsdec-align=0
#EXTVLCOPT:freetype-rel-fontsize=12
#EXTVLCOPT:sub-fps=0
http://url.to.film/The.Movie.File.avi
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

Scott JHU-ECE

Code Example?

Postby Scott JHU-ECE » 13 Dec 2005 16:34

If I could trouble you to cut and paste a rudimentary code example of what you've got so far, that'd be great!

Scott JHU-ECE

Re:

Postby Scott JHU-ECE » 13 Dec 2005 16:38

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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 22 guests