From ac6b1338382543613e1a7d319aeecb4451a7de9e Mon Sep 17 00:00:00 2001 From: Andreas Brachold Date: Sun, 27 Jul 2008 15:17:25 +0000 Subject: * Redesign SVDRP Communation to support more as one video disk recorder (Change database schema to version 30) --- html/widgets/remote.tmpl | 53 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 5 deletions(-) (limited to 'html/widgets') diff --git a/html/widgets/remote.tmpl b/html/widgets/remote.tmpl index 6c8e68f..3204c74 100644 --- a/html/widgets/remote.tmpl +++ b/html/widgets/remote.tmpl @@ -9,8 +9,15 @@ var interval = 5 var last = 0; +function post(url) { + var vdr = ( document.remoteform.vdr.options ? document.remoteform.vdr.options[document.remoteform.vdr.options.selectedIndex].value : document.remoteform.vdr.value ); + // Hmm, brutal und gemein, das Laden der URL als Bild funktioniert... + var img = new Image(); + img.src = url + '&__vdr=' + vdr; +} + function switch_channel(url) { - parent.Status.location.href = url; + post(url); if(last + 1000 < Date.UTC()) { grab(); @@ -21,8 +28,9 @@ function switch_channel(url) { function grab() { if(document.remoteform.grabinterval.value > 0) { - Now = new Date(); - document.livepicture.src = '?cmd=gdisplay&random=' + Now.getTime(); + Now = new Date(); + var vdr = ( document.remoteform.vdr.options ? document.remoteform.vdr.options[document.remoteform.vdr.options.selectedIndex].value : document.remoteform.vdr.value ); + document.livepicture.src = '?cmd=gdisplay&__vdr='+vdr+'&random=' + Now.getTime(); } last = Date.UTC(); } @@ -52,8 +60,8 @@ aktiv = window.setInterval("grab()", inter); - + 1 %?> + + + + + + + + + + +
- + + @@ -115,6 +123,41 @@ aktiv = window.setInterval("grab()", inter);  
+ +
+ +
+ +
-- cgit v1.2.3