I am attempting to create a page with feeds from multiple network cameras, but the JS libraries I reference are stored on the cameras themselves with the same name. Also, the video stream viewer objects are named identically.
Here's a sample of the code I have so far:
<script type='text/javascript' src='http://192.168.0.1:80/jsv/SncViewer.js'></script>
<script type="text/javascript">
new SNC.viewer('div1',{sz:'3',atc:'0',at:'1',ptz:'1',fps:'30',mt:'1',iPS:'1',frm:'0'});
</script>
<script type='text/javascript' src='http://192.168.0.2:80/jsv/SncViewer.js'></script>
<script>
new SNC.viewer('div2',{sz:'3',atc:'0',at:'1',ptz:'1',fps:'30',mt:'1',iPS:'1',frm:'0'});
</script>
It displays the first object correctly, but not the second.
Is there a way to create separate instances of this object that come from the different network libraries?