diff --git a/server/src/main/resources/html/static/index.html b/server/src/main/resources/html/static/index.html
index d8139478..faecf4a3 100644
--- a/server/src/main/resources/html/static/index.html
+++ b/server/src/main/resources/html/static/index.html
@@ -158,7 +158,7 @@
-
+
|
@@ -390,7 +390,6 @@
function play(recording) {
let src = recording.singleFile ? '/hls' + recording.path : recording.playlist;
- console.log("####################", src);
let hmacOfPath = CryptoJS.HmacSHA256(src, hmac);
src = '..' + src;
if(console) console.log("Path", src, "HMAC", hmacOfPath);
@@ -438,6 +437,17 @@
}
}
+ function download(recording) {
+ let src = recording.singleFile ? '/hls' + recording.path : recording.playlist;
+ let hmacOfPath = CryptoJS.HmacSHA256(src, hmac);
+ src = '..' + src;
+ if(console) console.log("Path", src, "HMAC", hmacOfPath);
+ if (hmac.length > 0) {
+ src += "?hmac=" + hmacOfPath;
+ }
+ location.href = src;
+ }
+
function calculateSize(sizeInByte) {
let size = sizeInByte;
let unit = "Bytes";
|