From 19c2e54fa744f3187f2c87995ea2094a3f99bd95 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Thu, 4 Jul 2013 22:22:00 +0200 Subject: In recordings menu 0 rewinds recording --- index.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'index.html') diff --git a/index.html b/index.html index a661feb..5379682 100644 --- a/index.html +++ b/index.html @@ -657,6 +657,12 @@ function onKeyDown(event) { case "Menu": if(isFullscreen) { + if(count) { + count = 0; + osdnr.style.opacity = 0; + showDisplay((currChan.toString()), false, 100, 0 ); + Change = 0; + } osdepginfo.style.opacity = 0; osdepginfonext.style.opacity = 0; isSetupMenu = 1; @@ -2578,6 +2584,13 @@ if (DelisOK) { setTimeout("switchtimer.style.opacity = 0; ", 2000); } break; + case KEY_0: + if (getRecOK == 1 && (recGroup[currMed] == 0 || subgroup == 1)) { + // Only rewind file if it isn't a subdir marker + setResumeNull(); + showMediaList(); + } + break; default: break; @@ -2905,6 +2918,20 @@ try { } + +function setResumeNull() { +try { + var xmlhttp = new XMLHttpRequest(); + xmlhttp.open("POST", recServ + "/setResume.xml?guid=" + recGUID[currMed] + "&resume=0", false); + xmlhttp.send(); + recList[currMed] = "\uE010" + Right(recList[currMed], recList[currMed].length -1 ); + } catch(e) { + alert("Setting Resume problem: " + e); + } + +} + + function getVDRstatus() { try { xmlhttp=new XMLHttpRequest(); -- cgit v1.2.3