This is the source I use (The video plays in a new window that opens up, so the whole code is not that big anyways). Also I use VLC version 1.1.11 if that is of any help.
Code: Select all
<html>
<head>
</head>
<body>
<?php
$ip = $_GET['ip'];
$port = $_GET['port'];
if (isset($_SERVER['HTTP_USER_AGENT']) &&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
{
?>
<OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab"
width="460" height="300" id="vlc" events="True" target="udp://@<?=$ip;?>:<?=$port;?>">
<param name="Src" value="udp://@<?=$ip;?>:<?=$port;?>" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="True" />
<param name="AutoPlay" value="True" />
</OBJECT>
<?php
} else {
?>
<embed type="application/x-vlc-plugin"
name="video1"
autoplay="yes" loop="yes" width="460" height="300"
target="udp://@<?=$ip;?>:<?=$port;?>" />
<?php
}
?>
</body>
</html>