[PHP + HTML]
Posted: 08 Jun 2008 14:26
Hi,
Is it possible to export the vlc playlist to use it into a PHP/HTML web page?
Thanks.
Is it possible to export the vlc playlist to use it into a PHP/HTML web page?
Thanks.
Discussion and support for VLC media player and friends
http://forum.videolan.org/
Code: Select all
<?php $url = "http://localhost:8080/requests/playlist.xml";
$contents = file_get_contents($url);
echo $contents;
?>
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>