Add local dashcam video library

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
Mathieu Moran
2026-08-09 19:04:47 -04:00
co-authored by Copilot
parent c57457b934
commit 3a981f5c6d
14 changed files with 659 additions and 29 deletions
+38
View File
@@ -60,6 +60,43 @@
<p id="dash-import-status">No import has been run yet.</p>
</div>
</div>
<div id="local-video-player-panel" class="card shadow mb-4" hidden>
<div class="card-header py-3 d-flex align-items-center justify-content-between">
<p id="local-video-player-title" class="text-primary m-0 fw-bold">Video player</p>
<button id="local-video-player-close" class="btn btn-sm btn-secondary" type="button">
Close
</button>
</div>
<div class="card-body">
<video id="local-video-player" class="local-video-player" controls preload="metadata"></video>
</div>
</div>
<div class="card shadow mb-4">
<div class="card-header py-3 d-flex flex-wrap align-items-center justify-content-between gap-2">
<div>
<p class="text-primary m-0 fw-bold">Imported videos on Pi</p>
<small id="local-video-summary" class="text-muted">Loading...</small>
</div>
<button id="local-videos-refresh-btn" class="btn btn-sm btn-secondary" type="button">
<i class="fas fa-sync-alt me-1"></i>Refresh
</button>
</div>
<div class="card-body p-0">
{{ data_table(
"local-video-list",
[
{"key": "thumbnail", "label": "Preview", "sortable": false},
{"key": "path", "label": "File", "sortable": true},
{"key": "size", "label": "Size", "sortable": true},
{"key": "modified", "label": "Modified", "sortable": true},
{"key": "uploaded", "label": "Upload", "sortable": true},
{"key": "actions", "label": "Actions", "sortable": false}
],
"No imported videos",
"Import videos from the connected dashcam to browse and play them here."
) }}
</div>
</div>
<div class="card shadow">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">Remote server upload</p>
@@ -85,4 +122,5 @@
{% block scripts %}
<script src="{{ url_for('static', filename='js/dash.js') }}"></script>
<script src="{{ url_for('static', filename='js/local-videos.js') }}"></script>
{% endblock %}