2 webcam in 1 webpage?
2 webcam in 1 webpage?
Is it possible to use two different webcams in 1 webpage? Or it can be done by opening 2 yawcam? pls reply..
Yes, first make a copy of your yawcam directory (e.g. c:\program files\yawcam), so that you have two versions of yawcam on your harddrive.
Let's say you now have two versions located like this:
c:\program files\yawcam
c:\program files\yawcam2
Now start the first version of Yawcam. Open the http settings (Settings -> Edit settings... -> Http) and change the port number from 8888 to e.g. 8889. Then go to the stream settings and change the port number from 8081 to e.g. 8082.
When this is done click OK to apply your changes.
Now start the second version of yawcam (So that two versions is running at the same time.), and enable the Http output in both programs.
Then edit the html file in the built in web server in the first version of yawcam. (e.g. c:\program files\yawcam\www\index.html)
originally the file looks like this:
Now change the code to also iclude the image from the second software:
Where "http://your-public-address:8889/out.jpg" contains the public address/ip-address to your computer and the port number you used in the settings in the beginning. You can get you public ip from here: http://www.yawcam.com/ipq.php
That's all
/malun
Let's say you now have two versions located like this:
c:\program files\yawcam
c:\program files\yawcam2
Now start the first version of Yawcam. Open the http settings (Settings -> Edit settings... -> Http) and change the port number from 8888 to e.g. 8889. Then go to the stream settings and change the port number from 8081 to e.g. 8082.
When this is done click OK to apply your changes.
Now start the second version of yawcam (So that two versions is running at the same time.), and enable the Http output in both programs.
Then edit the html file in the built in web server in the first version of yawcam. (e.g. c:\program files\yawcam\www\index.html)
originally the file looks like this:
Code: Select all
<html>
<head>
<title>Yawcam</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div align="center">
<p><strong><font size="5" face="Verdana, Arial, Helvetica, sans-serif">My webcam!</font></strong> </p>
<p><img border="0" src="out.jpg"></p>
<p><a href="http://www.yawcam.com" target="_blank"> <font face="Verdana, Arial, Helvetica, sans-serif">www.yawcam.com</font></a></p>
</div>
</body>
</html>
Code: Select all
<html>
<head>
<title>Yawcam</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div align="center">
<p><strong><font size="5" face="Verdana, Arial, Helvetica, sans-serif">My webcam!</font></strong> </p>
<p><img border="0" src="out.jpg"></p>
<p><img border="0" src="http://your-public-address:8889/out.jpg"></p>
<p><a href="http://www.yawcam.com" target="_blank"> <font face="Verdana, Arial, Helvetica, sans-serif">www.yawcam.com</font></a></p>
</div>
</body>
</html>
That's all
/malun