t type="datetime-local" id="startTime" step="1">
        <input type="datetime-local" id="endTime" step="1">
        <button onclick="startStream()">start stream</button>
        <button onclick="stopStream()">stop</button>
        <button onclick="clearFrames()">clear</button>
    </div>

    <div id="frames"></div>

    <script>
        let eventSource = null;
        
        function setDefaultTimes() {
            const end = new Date();
            end.setMinutes(end.getMinutes() - 2);
            
  