Leser: 17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?
set_time_limit(0);
$fp = fsockopen("localhost", 5000, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
$urlstring = "GET /?action=stream HTTP/1.0\r\n\r\n";
fputs ($fp, $urlstring);
while ($str = trim(fgets($fp, 4096)))
header($str);
fpassthru($fp);
fclose($fp);
}
?>
<img src="/?action=stream" width="400" height="300" type="video/x-motion-jpeg">
1
2
3
4
5
6
7
8
9
10
11
12
13
<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="400" height="300" id="vlc" events="True">
<param name="Src" value="/?action=stream"></param>
<param name="ShowDisplay" value="True" ></param>
<param name="AutoLoop" value="no"></param>
<param name="AutoPlay" value="yes"></param>
<embed type="application/x-google-vlc-plugin"
name="vlcfirefox"
autoplay="yes"
loop="no"
width="400"
height="300"
target="/?action=stream"></embed>
</object>
1
2
3
4
5
6
7
8
9
<embed type="application/x-vlc-plugin"
name="video1"
autoplay="no" loop="yes" width="400" height="300"
target="/?action=stream"></embed>
<br>
<a href="javascript:;" onclick='document.video1.play()'>Play video1</a>
<a href="javascript:;" onclick='document.video1.pause()'>Pause video1</a>
<a href="javascript:;" onclick='document.video1.stop()'>Stop video1</a>
<a href="javascript:;" onclick='document.video1.fullscreen()'>Fullscreen</a>