diff options
| author | Andreas Brachold <vdr07@deltab.de> | 2008-01-01 18:08:52 +0000 |
|---|---|---|
| committer | Andreas Brachold <vdr07@deltab.de> | 2008-01-01 18:08:52 +0000 |
| commit | e7b1e815ca77d9e4f2b7d6aa29ec986d0ac7da86 (patch) | |
| tree | 1be0de63714a17c6161257b8ebda9426f863e68f /skins/stone | |
| parent | 0b87e9e91ea49134e082888c038a8f42ae9f39e0 (diff) | |
| download | xxv-e7b1e815ca77d9e4f2b7d6aa29ec986d0ac7da86.tar.gz xxv-e7b1e815ca77d9e4f2b7d6aa29ec986d0ac7da86.tar.bz2 | |
* STREAM: Add HTTPD Streaming for recording, with starttime
* RECORDS: Start playback with start time
* TIMERS: drop workaround getOldDeactivTimer - 'Search for old and deactivated Timers and delete this'
cleanup etc/xxvd.cfg.example, skin.cfg
rdisplay: add input field for start time
Diffstat (limited to 'skins/stone')
| -rw-r--r-- | skins/stone/rdisplay.tmpl | 103 | ||||
| -rw-r--r-- | skins/stone/rlist.tmpl | 10 | ||||
| -rw-r--r-- | skins/stone/skin.cfg | 3 | ||||
| -rw-r--r-- | skins/stone/skin.cfg.default | 1 |
4 files changed, 70 insertions, 47 deletions
diff --git a/skins/stone/rdisplay.tmpl b/skins/stone/rdisplay.tmpl index 1ab5929..d101c84 100644 --- a/skins/stone/rdisplay.tmpl +++ b/skins/stone/rdisplay.tmpl @@ -1,4 +1,10 @@ <!-- rdisplay --> +<?% USE date %?> +<?% title = data.Title %?> +<?% subtitle = data.SubTitle %?> +<?% id = data.RecordId %?> +<?% allowplay = 1 IF allow('rplay') or allow('playrecord') %?> + <?%- IF data.Type == 'RADIO'; files = "images/audio.${global.imagetyp}"; ELSIF param.previews.size <= 0; @@ -9,25 +15,37 @@ -%?> <?% IF ! global.bodyinc.defined;global.bodyinc = 1 %?> -<?% IF files.size > 3 %?> <script language="javascript" type="text/javascript"> <!-- - window.onload = initslide; + var pics = <?% files.size %?>; + if( pics > 3) { + window.onload = initslide; + } + function setstart(wert) { + document.forms.offset.start.value = wert; + } + function playstart(cmd,parent) { + var url = '?cmd='+cmd + '&data=<?% id %?>&__start=' + document.forms.offset.start.value; + if(parent) { + top.location.href = url; + } else { + location.href = url; + } + } --> </script> -<?% END %?> <body class="hilfsframed"> <div> <?% END %?> -<?% USE date %?> -<?% title=data.Title;subtitle=data.SubTitle %?> + +<?% ######################################################################## %?> +<?% BLOCK hfs # d in Sekunden %?> + <?% d div 3600 %?>:<?% d div 60 mod 60 | format('%02d') %?>:<?% d mod 60 | format('%02d') %?> +<?% END %?> <?% ######################################################################## %?> <?% BLOCK dur # d in Sekunden %?> <?% IF d > 1 %?> - <?% Stunden = d div 3600 %?> - <?% Minuten = d div 60 mod 60 %?> - <?% Sekunden = d mod 60 %?> - <br /><?% gettext("Duration") %?>: <?% Stunden div 1 %?>:<?% Minuten | format('%02d') %?>:<?% Sekunden | format('%02d') %?> + <br /><?% gettext("Duration") %?>: <?% PROCESS hfs %?> <?% END %?> <?% END %?> <?% ######################################################################## %?> @@ -39,8 +57,16 @@ <div id="slideright"><img src="images/forward.<?% global.imagetyp %?>" title="<?% gettext("Next") %?>" alt="" /></div> <?% END %?>
<div id="slidelist" style="left:<?% IF files.size <= 3 %?><?% 280 - (160 * ( files.size / 2 ) ) %?><?% ELSE %?>0<?% END %?>px; width:<?% files.size * 200 %?>px;" >
- <?% FOREACH f = files %?> - <img class="recorddetails" src="<?% f %?>" alt="" /> + <?% FOREACH f = files %?> + <?% i = f.split('/').-1 %?> + <?% x = ( i.split('\.').0 ) / 25 %?> + <?% IF allowplay %?> + <a href="javascript:setstart('<?% PROCESS hfs d=x %?>')" > + <?% END %?> + <img class="recorddetails" src="<?% f %?>" alt="" title="<?% PROCESS hfs d=x %?>" /> + <?% IF allowplay %?> + </a> + <?% END %?> <?% END %?> <div id="slideend"></div>
</div>
@@ -51,32 +77,14 @@ <?% quest=data.Title;IF data.SubTitle.length > 0;quest=data.SubTitle;END %?> <?% ######################################################################## %?> <?% BLOCK RowButtons %?> -<div align="right"> +<form name="offset" method="get" action=""> +<div align="right" style="white-space: nowrap"> <a target="_blank" href="http://german.imdb.com/find?s=tt&site=aka&q=<?% quest %?>"> <img src="images/imdb.<?% global.imagetyp %?>" title="<?% gettext("Search with IMDb") %?>" alt="IMDb" /> </a> <a target="_blank" href="http://www.ofdb.de/view.php?page=suchergebnis&Kat=Titel&SText=<?% quest %?>"> <img src="images/ofdb.<?% global.imagetyp %?>" title="<?% gettext("Search with OFDb") %?>" alt="OFDb" /> </a> - <?% IF global.playbackmode == 0 %?> - <?% IF allow('stream') %?> - <a href="?cmd=stream&data=<?% id %?>"> - <img src="images/play.<?% global.imagetyp %?>" alt="" title="<?% gettext("Watch recording") %?>" /> - </a> - <?% END %?> - <?% ELSIF global.playbackmode == 1 %?> - <?% IF allow('playrecord') %?> - <a href="?cmd=playrecord&data=<?% id %?>"> - <img src="images/play.<?% global.imagetyp %?>" alt="" title="<?% gettext("Watch recording") %?>" /> - </a> - <?% END %?> - <?% ELSIF global.playbackmode == 2 %?> - <?% IF allow('rplay') %?> - <a href="?cmd=rplay&data=<?% id %?>"> - <img src="images/play.<?% global.imagetyp %?>" alt="" title="<?% gettext("Watch recording") %?>" /> - </a> - <?% END %?> - <?% END %?> <?% IF allow('rcut') %?> <a href="?cmd=rcut&data=<?% id %?>"> <img src="images/cut.<?% global.imagetyp %?>" alt="" title="<?% gettext("Cut recording") %?>" /> @@ -92,11 +100,26 @@ <img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete recording") %?>" /> </a> <?% END %?> + + <?% IF allow('rplay') %?> + <a href="javascript:playstart('rplay',0)" > + <img src="images/watch.<?% global.imagetyp %?>" alt="" title="<?% gettext("Watch recording in VDR") %?>" /> + </a> + <?% END %?> + <?% IF allow('playrecord') %?> + <a href="javascript:playstart('playrecord',1)" > + <img src="images/play.<?% global.imagetyp %?>" alt="" title="<?% gettext("Watch recording") %?>" /> + </a> + <?% END %?> + <?% IF allowplay %?> + <input style="width:60px;" size="10" type="text" name="start" value="00:00:00.0" /> + <?% END %?> </div> +</form> <?% END %?> <?% ######################################################################## %?> <?% BLOCK marks # (c) xpix %?> - <?% width = 450 #data.Duration > 7200 ? 600 : 500 %?> + <?% width = 500 #data.Duration > 7200 ? 600 : 500 %?> <table width="<?% width %?>" align="center" summary=""> <tr> <?%- c = 0; @@ -118,7 +141,15 @@ Stunden = c div 3600; Minuten = c div 60 mod 60 -%?> <td width="<?% offset = (c % 3600 ? 1 : 2);(percent - offset) div 1 %?>" align='right'> - <font size='1'><?% Stunden | format('%02d') %?>:<?% Minuten | format('%02d') %?></font> + <font size='1'> +<?% IF allowplay %?> + <a href="javascript:setstart('<?% PROCESS hfs d=c %?>')" > +<?% END %?> + <?% Stunden %?>:<?% Minuten | format('%02d') %?> +<?% IF allowplay %?> + </a> +<?% END %?> + </font> </td> <?% END %?> </tr> @@ -155,7 +186,7 @@ IF data.Duration > secold; class = (class == 'marksright2' ? 'marksright1' : 'marksright2'); percent = ((data.Duration - secold) / data.Duration) * width; - -%?><img class="<?% class %?>" src="images/blank.gif" width="<?% ( percent - 1 ) div 1 %?>" height="12" title="<?% (c < 0 ? "0:00:00.00" : ml.$c) %?> - <?% data.Duration div 3600 %?>:<?% data.Duration div 60 mod 60 | format('%02d') %?>:<?% data.Duration mod 60 | format('%02d') %?>" /> + -%?><img class="<?% class %?>" src="images/blank.gif" width="<?% ( percent - 1 ) div 1 %?>" height="12" title="<?% (c < 0 ? "0:00:00.00" : ml.$c) %?> - "<?% PROCESS hfs d=data.Duration %?>" /> <?% END %?> <?% ELSE %?> <img class="marksleft" src="images/blank.gif" width="0" height="12" /><img class="marksright2" src="images/blank.gif" width="<?% width %?>" height="12" /> @@ -203,7 +234,7 @@ <select name='data' onchange="di('?cmd=rconvert&data=',this.form.data.options[this.form.data.options.selectedIndex].value)"> <option value='0'><?% gettext("Choose a command to edit this recording ...") %?></option> <?% FOREACH cmd = param.reccmds %?> - <option value='<?% loop.count %?>_<?% data.RecordId %?>'><?% cmd.split(':').first %?></option> + <option value='<?% loop.count %?>_<?% id %?>'><?% cmd.split(':').first %?></option> <?% END %?> </select> </form> @@ -229,7 +260,7 @@ <?% gettext('Priority') %?> : <?% data.Prio %?> </td> <td class="push"> - <?% PROCESS RowButtons id=data.RecordId%?> + <?% PROCESS RowButtons %?> </td> </tr> </table> diff --git a/skins/stone/rlist.tmpl b/skins/stone/rlist.tmpl index 1002a8b..f22beaa 100644 --- a/skins/stone/rlist.tmpl +++ b/skins/stone/rlist.tmpl @@ -76,13 +76,7 @@ <?% END %?> <?% ######################################################################## %?> <?% BLOCK RowButtons %?> - <?% IF global.playbackmode == 0 %?> - <?% IF allow('stream') %?> - <a href="javascript:popup('stream','<?% id %?>',620,670,1)"> - <img src="images/play.<?% global.imagetyp %?>" alt="" title="<?% gettext("Watch recording") %?>" /> - </a> - <?% END %?> - <?% ELSIF global.playbackmode == 1 %?> + <?% IF global.playbackmode == 1 %?> <?% IF allow('playrecord') %?> <a href="?cmd=playrecord&data=<?% id %?>"> <img src="images/play.<?% global.imagetyp %?>" alt="" title="<?% gettext("Watch recording") %?>" /> @@ -91,7 +85,7 @@ <?% ELSIF global.playbackmode == 2 %?> <?% IF allow('rplay') %?> <a href="javascript:popup('rplay','<?% id %?>',620,670,1)"> - <img src="images/play.<?% global.imagetyp %?>" alt="" title="<?% gettext("Watch recording") %?>" /> + <img src="images/watch.<?% global.imagetyp %?>" alt="" title="<?% gettext("Watch recording in VDR") %?>" /> </a> <?% END %?> <?% END %?> diff --git a/skins/stone/skin.cfg b/skins/stone/skin.cfg index d6bf351..0682ed0 100644 --- a/skins/stone/skin.cfg +++ b/skins/stone/skin.cfg @@ -2,8 +2,7 @@ <?% # 0 = Show/1 = Hide Description on program,now,search %?> <?% SET global.hideDescription = 0 %?> <?% ######################################################################## %?> -<?% # 0 = Stream recording with ffmpeg %?> <?% # 1 = Stream recording with Samba/NFS %?> <?% # 2 = Start playback with SVDRP %?> -<?% SET global.playbackmode = 2 %?> +<?% SET global.playbackmode = 1 %?> diff --git a/skins/stone/skin.cfg.default b/skins/stone/skin.cfg.default index 32e24b9..0682ed0 100644 --- a/skins/stone/skin.cfg.default +++ b/skins/stone/skin.cfg.default @@ -2,7 +2,6 @@ <?% # 0 = Show/1 = Hide Description on program,now,search %?> <?% SET global.hideDescription = 0 %?> <?% ######################################################################## %?> -<?% # 0 = Stream recording with ffmpeg %?> <?% # 1 = Stream recording with Samba/NFS %?> <?% # 2 = Start playback with SVDRP %?> <?% SET global.playbackmode = 1 %?> |
