Changed from webcam to ip cam
authorUnknown <cedric.godin@me.com>
Tue, 20 Feb 2018 16:52:55 +0000 (11:52 -0500)
committerUnknown <cedric.godin@me.com>
Tue, 20 Feb 2018 16:52:55 +0000 (11:52 -0500)
resources/js/share-model.js
views/share.html

index cd9adc1091cd91983551bc6802d9d30cd2e1d89c..8d2f159484eb3d9430721c91cc9b11f14b41fcfc 100644 (file)
@@ -4,7 +4,7 @@ const pointToImage = require("../resources/js/point-to-image.js");
 
 const markers = document.getElementsByClassName('marker');
 var rgbValueStrings = ["rgb(75,192,192)","rgb(192,75,192)","rgb(192,192,30)","rgb(0,200,40)"];
-
+/*
 var errorCallback = function(e) {
     console.log('Reeeejected!', e);
   };
@@ -14,7 +14,7 @@ var errorCallback = function(e) {
     var video = document.getElementById('video-frame')
     video.src = window.URL.createObjectURL(localMediaStream);
   }, errorCallback);
-
+*/
 
 ipcRenderer.on('tracking', (event, data)=> {
 
index 826b846e5c31d91d39e299ea5b826ec33ca79658..be87b5dfe150a352ec9a53dbdc76c204c5c30e95 100644 (file)
@@ -21,7 +21,8 @@
         <div id="share-model" class="container-fluid p-body">
             <div class="row">
                 <div class="col-sm-12">
-                        <video style="position:absolute; top:0px; left:0px; z-index:-10; max-width:100vw; max-height:100vh; padding-bottom:80px"  id="video-frame" autoplay></video>
+                        <!--<video style="position:absolute; top:0px; left:0px; z-index:-10; max-width:100vw; max-height:100vh; padding-bottom:80px"  id="video-frame" autoplay></video>-->
+                        <img style="position:absolute; top:0px; left:0px; z-index:-10; width: 100%; height: auto; max-width:100vw; max-height:100vh; padding-bottom:80px"  id="video-frame" src="http://192.168.1.107:8080/?action=stream"></img>
                         <canvas style="position:absolute; display:none" class="marker" ></canvas>
                         <canvas style="position:absolute; display:none" class="marker" ></canvas>
                         <canvas style="position:absolute; display:none" class="marker" ></canvas>