[PHP + HTML]

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
dadedvd
New Cone
New Cone
Posts: 7
Joined: 05 Jun 2008 14:51

[PHP + HTML]

Postby dadedvd » 08 Jun 2008 14:26

Hi,

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

Thanks.

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: [PHP + HTML]

Postby Arite » 08 Jun 2008 17:30

Export in what way? You can save a VLC playlist as e.g. M3U and XSPF which could be parsed via PHP etc.

Arite.
Don't use PMs for support questions.

dadedvd
New Cone
New Cone
Posts: 7
Joined: 05 Jun 2008 14:51

Re: [PHP + HTML]

Postby dadedvd » 11 Jun 2008 21:50

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?

arobro
Blank Cone
Blank Cone
Posts: 14
Joined: 18 May 2008 00:13
Operating System: win & linux
Location: NZ

Re: [PHP + HTML]

Postby arobro » 12 Jun 2008 10:41

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; ?>

dadedvd
New Cone
New Cone
Posts: 7
Joined: 05 Jun 2008 14:51

Re: [PHP + HTML]

Postby dadedvd » 12 Jun 2008 14:16

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:

arobro
Blank Cone
Blank Cone
Posts: 14
Joined: 18 May 2008 00:13
Operating System: win & linux
Location: NZ

Re: [PHP + HTML]

Postby arobro » 14 Jun 2008 10:39

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>


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 7 guests