diff --git a/templates/index.html b/templates/index.html
index 8367872..cb24752 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1120,8 +1120,9 @@
Konec: ${formatTime(endInit)}
Trajanje: ${(endInit-startInit).toFixed(1)}s
-
-
+
+
+
@@ -1416,6 +1417,17 @@
});
};
+ // ─── PREVIEW LAST 5s: samo zadnjih 5 sekund odseka — za preverit konec ───
+ window.previewLast5 = function() {
+ if (!video) return;
+ // Skoči 5s pred konec odseka
+ const startFrom = Math.max(trimStart, trimEnd - 5);
+ video.currentTime = startFrom;
+ video.play().catch(err => {
+ console.warn("Play failed:", err);
+ });
+ };
+
// Auto-stop ko doseže trimEnd (brez render-a, brez preview clip URL)
// Samo če NI v aktivnem dragu (ker drag = naročiteljsko seekanje)
if (video) {