Webcam, plaatje tonen bij offline
Ik gebruik het volgende om streaming webcam te tonen op een website:
Webcam.html
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="Pragma" content="no-cache">
<script language="javascript" src="scripts/beveiliging.js"></script>
<link rel="stylesheet" type="text/css" href="scripts/velden.css" />
<link rel="stylesheet" type="text/css" href="scripts/tekstbeheer.css" />
<style type="text/css">
<!--
body {background:none transparent;}
a{text-decoration:none;}
a:link{color: #000000;}
a:visited{color: #ffffff;}
a:hover{color: #008080;}
//-->
</style>
</head>
<body bgcolor="#e7cea5">
<table width=580 cellspacing=0 cellpadding=0 border=0 bordercolor="#000000">
<tr>
<td width=480 height=20 align=left valign=top><b>Manege (live)webcam</b></td>
<td width=50 height=20 align=center valign=middle> </td>
<td width=50 height=20 align=center valign=middle> </td>
</tr>
</table>
<table width=580 cellspacing=0 cellpadding=0 border=0 bordercolor="#000000">
<tr>
<td width=580 height=20 colspan=3> </td>
</tr>
</table>
<table width=580 cellspacing=0 cellpadding=0 border=0 bordercolor="#000000">
<tr>
<td width=580 align=center height=20 colspan=3><b>Dit zijn testbeelden.</b></td>
</tr>
</table>
<table width=580 height=240 border=0 cellspacing=0 cellpadding=0 bgcolor="#e7cea5">
<tr>
<td width=90> </td>
<td width=400 height=300 border=0 bgcolor="#e7cea5">
<div align="center">
<object id="MediaPlayer1" width=400 height=300 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft Windows Media Player components...">
<param name="Filename" value="mms://ip-adres:poort">
<param name="AnimationAtStart" value="true">
<param name="AutoStart" value="true">
<param name="TransparentAtStart" value="true">
<param name="ShowControls" value="false">
<param name="PlayCount" value="true">
<embed width="400" height="300" src="mms://ip-adres:poort" controller=false autoplay=true playeveryframe=true pluginspage="plugin.html">
</object>
</div>
</td>
<td width=90> </td>
</tr>
</table>
<table width=580 cellspacing=0 cellpadding=0 border=0 bordercolor="#000000">
<tr>
<td width=580 align=center height=35 colspan=3><iframe width=580 height=35 src="ladenwebcam.html" frameborder=0 scrolling="no" allowTransparency="true"></iframe></td>
</tr>
</table>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="Pragma" content="no-cache">
<script language="javascript" src="scripts/beveiliging.js"></script>
<link rel="stylesheet" type="text/css" href="scripts/velden.css" />
<link rel="stylesheet" type="text/css" href="scripts/tekstbeheer.css" />
<style type="text/css">
<!--
body {background:none transparent;}
a{text-decoration:none;}
a:link{color: #000000;}
a:visited{color: #ffffff;}
a:hover{color: #008080;}
//-->
</style>
</head>
<body bgcolor="#e7cea5">
<table width=580 cellspacing=0 cellpadding=0 border=0 bordercolor="#000000">
<tr>
<td width=480 height=20 align=left valign=top><b>Manege (live)webcam</b></td>
<td width=50 height=20 align=center valign=middle> </td>
<td width=50 height=20 align=center valign=middle> </td>
</tr>
</table>
<table width=580 cellspacing=0 cellpadding=0 border=0 bordercolor="#000000">
<tr>
<td width=580 height=20 colspan=3> </td>
</tr>
</table>
<table width=580 cellspacing=0 cellpadding=0 border=0 bordercolor="#000000">
<tr>
<td width=580 align=center height=20 colspan=3><b>Dit zijn testbeelden.</b></td>
</tr>
</table>
<table width=580 height=240 border=0 cellspacing=0 cellpadding=0 bgcolor="#e7cea5">
<tr>
<td width=90> </td>
<td width=400 height=300 border=0 bgcolor="#e7cea5">
<div align="center">
<object id="MediaPlayer1" width=400 height=300 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft Windows Media Player components...">
<param name="Filename" value="mms://ip-adres:poort">
<param name="AnimationAtStart" value="true">
<param name="AutoStart" value="true">
<param name="TransparentAtStart" value="true">
<param name="ShowControls" value="false">
<param name="PlayCount" value="true">
<embed width="400" height="300" src="mms://ip-adres:poort" controller=false autoplay=true playeveryframe=true pluginspage="plugin.html">
</object>
</div>
</td>
<td width=90> </td>
</tr>
</table>
<table width=580 cellspacing=0 cellpadding=0 border=0 bordercolor="#000000">
<tr>
<td width=580 align=center height=35 colspan=3><iframe width=580 height=35 src="ladenwebcam.html" frameborder=0 scrolling="no" allowTransparency="true"></iframe></td>
</tr>
</table>
</body>
</html>
Hoe kan ik een plaatje laten zien indien de webcam offline is?
Code tags toegevoegd + ip-adres aangepast.
Gewijzigd op 01/01/1970 01:00:00 door Dirk
Zet alles tussen code tags
Gewijzigd op 01/01/1970 01:00:00 door Dirk