strix

A simple web UI for motion
git clone https://www.brianlane.com/git/strix
Log | Files | Refs | LICENSE

commit fb56d3d55016604098f900ccaeaecf7aad2cf1e2
parent 7533e75f06e8b1320cff21e838a83130e1606de3
Author: Brian C. Lane <bcl@brianlane.com>
Date:   Sun, 22 May 2022 21:05:46 -0700

Add video debug button to event playback list

Diffstat:
Msrc/strix/ui/events.html | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/strix/ui/events.html b/src/strix/ui/events.html @@ -13,6 +13,7 @@ </div> <div id="days"> <ul id="daylinks"> + <li><a id="debugvideo" onclick="">debug</a></li> <li><a id="scrollback" onclick="">Jump Back</a></li> </ul> </div> @@ -103,6 +104,13 @@ function load_viewer(event, scrollY) { // Setup the scrollback link var sb = document.querySelector("#scrollback"); sb.onclick = function() {scroll(0, scrollY);}; + + // Setup the debug link + var dbg = document.querySelector("#debugvideo"); + dbg.onclick = function() { + viewer.src = viewer.src.replace("video.m4v", "debug/video.m4v"); + }; + } function setup_page() {