Skip to content

Commit

Permalink
Merge pull request s60sc#58 from gemi254/V.5.0
Browse files Browse the repository at this point in the history
Fix html not working..
  • Loading branch information
s60sc committed Feb 8, 2022
2 parents 684b67c + b3d7a92 commit e80e90c
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 e80e90c

Please sign in to comment.