i'm designing a web video chat application using dreamweaver (php). i've already created the interface of the application, but i got stuck. i don't have the codes to use the webcam resource on my system. can anyone please help me. Thanks.
Here are the codes for the interface:
CODE
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>IP Conferencing</title>
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
background-image: url(pics/bg.gif);
}
.header-text {
background-color: #330000;
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center center;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: large;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: small-caps;
color: #FFFFFF;
text-decoration: blink;
border: 3px dashed #FFFFFF;
letter-spacing: normal;
text-align: center;
vertical-align: middle;
}
.textfield {
text-align: center;
overflow: hidden;
visibility: visible;
font-family: "Courier New", Courier, monospace;
font-size: large;
font-style: normal;
font-weight: normal;
font-variant: normal;
color: #FFFFFF;
background-color: #000000;
background-repeat: no-repeat;
width: 353px;
left: 222px;
top: 485px;
height: 52px;
position: static;
letter-spacing: normal;
vertical-align: middle;
word-spacing: normal;
white-space: normal;
text-decoration: underline;
}
.style1 {background-color: #330000; background-attachment: fixed; background-repeat: no-repeat; background-position: center center; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-large; font-style: normal; line-height: normal; font-weight: normal; font-variant: small-caps; color: #FFFFFF; text-decoration: blink; border: 3px dashed #FFFFFF; letter-spacing: normal; text-align: center; vertical-align: middle; }
-->
</style>
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
if (flashVer < reqVer){
if (confirm(msg))
window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
}
}
}
}
</script>
</head>
<body onload="MM_CheckFlashVersion('6,0,79,0','Content on this page requires a newer version of Macromedia Flash Player. Do you want to download it now?');">
<form id="form1" name="form1" method="post" action="">
<table width="717" height="640" border="1" align="center">
<tr>
<td height="55" colspan="2" bordercolor="#000000" class="style1"><marquee behavior="alternate"> Video Conferencing </marquee></td>
</tr>
<tr>
<td width="273" rowspan="3" bordercolor="#000000" bgcolor="#330000"> </td>
</tr>
<tr>
<td height="113" bordercolor="#000000" bgcolor="#330000"> </td>
</tr>
<tr>
<td height="54" bordercolor="#000000" bgcolor="#FFFFFF"><label>
<span class="header-text">ChatBox:</span>
<input name="chatbox" type="text" size = "70"/>
</label></td>
</tr>
</table>
</form>
</body>
</html>