Re: portal.pristavka.de - разработка медиапортала для PeerStation SIG-220
вот тут меня сайт посылает нах
try {h = JSTV.Video.GetBrowseRegionHeight();} catch(e) { go('/?act=logout'}
ну а так немного кода есть, думаю можно попытатся включить отключение осд и управление звуком
вот тут меня сайт посылает нах
try {h = JSTV.Video.GetBrowseRegionHeight();} catch(e) { go('/?act=logout'}
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Cache-Control" content="max-age=0" /> <meta HTTP-EQUIV="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <link rel="shortcut icon" href="/favicon.ico" /> <TITLE>Картина.ТВ</TITLE> <script type="text/javascript" src="/js/peertv/common.js?32"></script> <script type="text/javascript" src="/js/locale/ru_RU.js?32"></script> <script type="text/javascript" src="/js/peertv/osd.js?32"></script> <script type="text/javascript"> try {h = JSTV.Video.GetBrowseRegionHeight();} catch(e) { go('/?act=logout');} var show_brow = true; var glob = {"opacity":90,"servertime":1280760529,"g_off":10800}; var scrHeigth = 0; var channel_id = 0; var channel_ids = new Array(7,8,6,39); var page_dt = new Date(); function main_keyhandler(e) { if (OSD.key_handler(e)) return false; Key = e.which; switch (Key) { case JSTV.Device.kbd.MENU: go('/'); break; case JSTV.Device.kbd.INTERNET: goHome(); break; case JSTV.Device.kbd.PREVIOUS: onBack(); return; break; case JSTV.Device.kbd.MEDIA_RADIO: go(get_url({'m':'radio'})); break; case JSTV.Device.kbd.MEDIA_VIDEO: go(get_url({'m':'channels'})); break; case JSTV.Device.kbd.SETUP: go(get_url({'m':'clients'})); break; case JSTV.Device.kbd.BLUE: go(get_url({'m':'art'})); break; case JSTV.Device.kbd.YELLOW: window.location.reload(); break; case JSTV.Device.kbd.MEDIA_STOP: playerStop(); break; default: return true; break; } return true; } document.onkeypress = main_keyhandler; if (_fresco) JSTV.System.onPowerEvent = "onPower();"; function onBack() { if (!is_play() || channel_id==0) { go('/'); return; } var a_gmt = Cookie.get('a_gmt'); // archive gmt var a_ts = Cookie.get('a_ts'); // archive started if (a_ts && a_gmt) { var elap = parseInt(glob.servertime) - parseInt(a_ts); // delta seconds elap = (new Date().getTime()-page_dt.getTime())/1000; // page seconds var gmt = Math.round(parseInt(a_gmt) elap-glob.g_off); goChannelNoPlay(channel_id, gmt); } else { goChannelNoPlay(channel_id); } } </script> <style type="text/css"> body { color: #efefef; font-family: verdana; } </style> <link href="/css/face.css?6" type="text/css" rel="stylesheet" /> </HEAD> <BODY marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" rightmargin="0" link="#FC8E00" > <table cellpadding="0" cellspacing="0" align="center" width="100px"> <tr> <form name="osd"> <td align="center"><br/><input name="msg" type="button" selimage="/img/0.png" borderimage="/img/0.png" value="" height="36px" width="300px" border style="color: #FC8E00; font-size: 18pt; font-weight:bold;" tabindex="0" /></td> </form> </tr></table><script> if (_fresco) showBrowser();</script> <script> function Menu() { this.sel = 2; this.limit = 5; this.urlsOnItem = false; this.itemClicked = false; this.items = []; this.img_url = '/img/menu/dream/'; var mitem={ title: 'ПОМОЩЬ', url: '/?m=art', img: 'info'}; this.items[0] = mitem; var mitem={ title: 'ТВ ПРОГРАММЫ', url: '/?m=epg', img: 'rectime'}; this.items[1] = mitem; var mitem={ title: 'ТВ КАНАЛЫ', url: '/?m=channels', img: 'tv'}; this.items[2] = mitem; var mitem={ title: 'РАДИО', url: '/?m=radio', img: 'radio'}; this.items[3] = mitem; var mitem={ title: 'НАСТРОЙКИ', url: '/?m=clients', img: 'setup'}; this.items[4] = mitem; var mitem={ title: 'ВЫХОД', url: '/?act=logout&m=main', img: 'shutdown'}; this.items[5] = mitem; } Menu.prototype.create = function() { var s=''; for(var i=0;i<this.limit;i ) { var item=this.items[i]; var w=h=70; s = '<td align="center" valign="top" height="100%"'; var img = this.img_url item['img']; var pref=postf=''; if (i==this.sel) { img ='_sel'; w=128; h=127; s =' background="/img/menu/dream/bg_center.gif?2" width="244px"'; pref='<table width="100%" height="100%" cellpadding="0px" cellspacing="0px" border="0"><tr><td align="center" valign="top">'; postf ='&nbsp;&nbsp;&nbsp;<br/><br/></td></tr>'; postf ='<form name="mtitle">'; postf ='<tr><td align="center">'; postf ='<input name="msg" type="button" selimage="/img/0.png" borderimage="/img/0.png" value="' this.items[i]["title"] '" height="22px" width="180px" border class="small_osd"/></td></tr>'; postf ='</form></table>'; } else { pref='<img src="/img/0.gif" height="44px"/><br/>'; s =' background="/img/menu/dream/bg_line.gif" style="background-repeat: repeat-x;"'; } s = '>' pref '<img width="' w '" height="' h '" src="' img '.png" name="mi_' i '" onclick="go('' item['url'] ''); return false;"/>' postf '</td>'; } document.writeln(s); }; Menu.prototype.moveRight = function() { if (this.itemClicked) return; var nitems = []; for(var i=0;i<this.limit;i ) { nitems[i]=(this.items[i 1]) ? this.items[i 1] : this.items[0]; img = this.img_url nitems[i]['img']; if (i==this.sel) img ='_sel'; document["mi_" i].src = img ".png" ; } this.items = nitems; this.setCurTitle(); } Menu.prototype.moveLeft = function() { if (this.itemClicked) return; var nitems = []; for(var i=0;i<this.limit;i ) { nitems[i]=(this.items[i-1]) ? this.items[i-1] : this.items[this.items.length-1]; img = this.img_url nitems[i]['img']; if (i==this.sel) img ='_sel'; document["mi_" i].src = img ".png"; } this.items = nitems; this.setCurTitle(); } Menu.prototype.setCurTitle = function() { this.setTitle(this.items[this.sel]['title']); } Menu.prototype.setTitle = function(title) { document.mtitle.msg.value = title;} Menu.prototype.goTo = function(i) { go(this.items[i]['url']);} Menu.prototype.go = function() { this.itemClicked = true; this.goTo(this.sel); } var oMenu = new Menu; //if (!_fresco) oMenu.urlsOnItem = true; function kh_home(e) { Key = e.which; switch (Key) { case JSTV.Device.kbd.OK: oMenu.go(); break; case JSTV.Device.kbd.RIGHT: case JSTV.Device.kbd.UP: oMenu.moveRight(); break; case JSTV.Device.kbd.LEFT: case JSTV.Device.kbd.DOWN: oMenu.moveLeft(); break; default: main_keyhandler(e); break; } return true; } document.onkeypress = kh_home; </script> <table height="80%" width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="#00000000" height="100%" align="center">&nbsp;</td> </tr> <tr> <td valign="bottom" height="190px" align="center"> <table width="100%" height="190px" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="small" background="/img/menu/dream/bg_line.gif" style="background-repeat: repeat-x;"><a href="#" onclick="oMenu.moveRight(); return false;">&laquo;</a></td> <script>oMenu.create();</script> <td class="small" background="/img/menu/dream/bg_line.gif" style="background-repeat: repeat-x;"><a href="#" onclick="oMenu.moveLeft(); return false;">&raquo;</a></td> </tr> </table> </td> </tr> </table> </BODY> </HTML>
Комментарий