Skip to content

Commit

Permalink
Fix html not working..
Browse files Browse the repository at this point in the history
  • Loading branch information
gemi254 committed Feb 8, 2022
1 parent 684b67c commit b3d7a92
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions data/MJPEG2SD.htm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>ESP32-CAM_MJPEG</title>
<script src="jquery.min.js"></script>
<script src="/jquery.min.js"></script>
<style>
body {
font-family: Arial,Helvetica,sans-serif;
Expand Down Expand Up @@ -1230,23 +1230,7 @@ <h3>Ftp settings</h3>
}
})
}

const bPlaying = (streamButton.innerHTML == 'Stop Stream')
if(bPlaying){
stopStream();
window.stop();
}
$.ajax({
url: baseHost + '/control',
data: {
"defaults": "1"
},
success: function(response) {
if(bPlaying) startStream()
}
})
setTimeout(function () { location.reload(true); }, 10000);
}

const stopStream = () => {
window.stop();
streamButton.innerHTML = 'Start Stream'
Expand Down

0 comments on commit b3d7a92

Please sign in to comment.