Page 1 of 1

[PHP + HTML]

Posted: 08 Jun 2008 14:26
by dadedvd
Hi,

Is it possible to export the vlc playlist to use it into a PHP/HTML web page?

Thanks.

Re: [PHP + HTML]

Posted: 08 Jun 2008 17:30
by Arite
Export in what way? You can save a VLC playlist as e.g. M3U and XSPF which could be parsed via PHP etc.

Arite.

Re: [PHP + HTML]

Posted: 11 Jun 2008 21:50
by dadedvd
Ok...

Buf i would like to have a web page tha contains the address of all flow that are load in the VideoLan Server, so you can click on the link and start to recive the stream or you can see the address, copy it and paste into other player like wmp.

Is it possible?

Re: [PHP + HTML]

Posted: 12 Jun 2008 10:41
by arobro
You can use vlc rss feeds
go settings : add interface : web interface in vlc
and you can view vlc playlist rss feed here http://localhost:8080/requests/playlist.xml

heres an example i use to get data into php

Code: Select all

<?php $url = "http://localhost:8080/requests/playlist.xml"; $contents = file_get_contents($url); echo $contents; ?>

Re: [PHP + HTML]

Posted: 12 Jun 2008 14:16
by dadedvd
It doesn't works!!! :evil:

It return a white page but in http://localhost:8080/requests/playlist.xml i see the files in the playlist...

Another question... I have one of the files in the playlist that is transcoded and trasnmitted over http ( :sout=#duplicate{dst=std{access=http,mux=ts,dst=192.168.10.10:1234}} ), is it possible to print the address to see the stream, in this case 192.168.10.10:1234?

Help me please.... :cry:

Re: [PHP + HTML]

Posted: 14 Jun 2008 10:39
by arobro
not sure why php code returned blank page
the second question...

I would just play the files in web page with iframe to see the playlist
heres an example in html web page using windows media player

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>vlc</title> </head> <body> <OBJECT ID="MediaPlayer" width="400" height="300" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=, 1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> <PARAM name="FileName" value="http://192.168.10.10:1234"> <param name='autoStart' value="true"> <param name='showControls' value="true"> <param name='loop' value="false"> <param name="ShowStatusBar" value="true"> <PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="http://192.168.10.10:1234" name="MediaPlayer" width=400 height=300> </EMBED> </OBJECT> <br><a href="http://192.168.10.10:1234">open stream in defalt media player</a></br> <iframe src ="http://localhost:8080/requests/playlist.xml " frameborder="no" height="400" width="400"> </iframe> </body> </html>