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);
};
var video = document.getElementById('video-frame')
video.src = window.URL.createObjectURL(localMediaStream);
}, errorCallback);
-
+*/
ipcRenderer.on('tracking', (event, data)=> {
<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>