diff options
| author | M. Voerman <rekordc@gmail.com> | 2012-12-12 14:57:13 +0100 |
|---|---|---|
| committer | M. Voerman <rekordc@gmail.com> | 2012-12-12 14:57:13 +0100 |
| commit | 8f98fed2fa6c1462d680811a9a7fcbf6a3099642 (patch) | |
| tree | 9144c50204b9043e299f2fb48c9e89132a1cb7b4 | |
| parent | 704aa320d60da6efba4e00e930784fcc384e956f (diff) | |
| download | vdr-vipclient-8f98fed2fa6c1462d680811a9a7fcbf6a3099642.tar.gz vdr-vipclient-8f98fed2fa6c1462d680811a9a7fcbf6a3099642.tar.bz2 | |
Speedup OSD
| -rw-r--r-- | History | 4 | ||||
| -rw-r--r-- | channels.js | 7 | ||||
| -rw-r--r-- | index.html | 49 | ||||
| -rw-r--r-- | settings.js | 8 |
4 files changed, 39 insertions, 29 deletions
@@ -11,6 +11,6 @@ Added CA Mode to OSD key.png Full schedule try. In guide mode Red - switch timer next program, Green now/next, Yellow Schedule, Blue program info. - - + Speed up OSD. (In fullscreen don't need to update channellist.) + AudioOut can now be selected in settings.js diff --git a/channels.js b/channels.js index 3cd0392..6870c85 100644 --- a/channels.js +++ b/channels.js @@ -1195,3 +1195,10 @@ channels[954] = "S13.0E-64511-800-1465"; channelsnames[955] = "RTG TV (S)"; channels[955] = "S13.0E-318-15600-10735"; +channelsnames[961] = "NED1 HD (S)" +channels[961] = "S23.5E-3-3208-7035" +channelsnames[962] = "NED2 HD (S)" +channels[962] = "S23.5E-3-3202-6080" +channelsnames[963] = "NED3 HD (S)" +channels[963] = "S23.5E-3-3225-21040" + @@ -33,15 +33,8 @@ window.onkeydown = onKeyDown; function onLoad() { createPlayer(); embedTeletextPlugin(); -// AUDIO_CONNECTION_TYPE_ANALOG = 0; -// AUDIO_CONNECTION_TYPE_SPDIF = 1; -// AUDIO_CONNECTION_TYPE_HDMI = 2; -// AUDIO_CONNECTION_TYPE_DECODER = 3; -// AUDIO_CONNECTION_TYPE_BUFFER = 4; -// AUDIO_CONNECTION_TYPE_I2S = 5; - toi.audioOutputService.setVolume(0, 100); - toi.audioOutputService.setVolume(3, StartVolume); - toi.audioOutputService.setMuteState(3, false); + toi.audioOutputService.setVolume(AudioOut, StartVolume); + toi.audioOutputService.setMuteState(AudioOut, false); showDisplay((currChan.toString()), false, 100, 0 ); play(channels[currChan]); eitCache = toi.dvbEitService.createInstance(); @@ -97,7 +90,6 @@ function play(uri) { showOSD(); } showDisplay((currChan.toString()), false, 100, 0 ); - showChannelList(); } catch (e) { alert("Failed opening stream: " + e); return; @@ -255,8 +247,8 @@ function onKeyDown(event) { audio = 0; } } else { - osdepginfo.style.opacity = 0.9; - osdepginfonext.style.opacity = 0; + osdepginfo.style.opacity = 1 - osdepginfo.style.opacity ; + osdepginfonext.style.opacity = 1 - osdepginfo.style.opacity; } } else { NowNext = 1 - NowNext; @@ -270,9 +262,6 @@ function onKeyDown(event) { GetSchedule(currChan); schedule.style.opacity = 1; setTimeout("schedule.style.opacity = 0;", 3000); - } else { - osdepginfo.style.opacity = 0; - osdepginfonext.style.opacity = 0.9; } } else { GetSchedule(currChan); @@ -302,7 +291,7 @@ function onKeyDown(event) { if(isFullscreen) { //SHOW epg info SetOsdInfo(); - osdepginfo.style.opacity = 0.9; + osdepginfo.style.opacity = 1; osdepginfonext.style.opacity = 0; epgactive = 1; setTimeout("epgactive = 0; osdepginfo.style.opacity = 0; osdepginfonext.style.opacity = 0;", 5000); @@ -426,8 +415,8 @@ function onKeyDown(event) { } break; case "VolumeMute": - state = toi.audioOutputService.getMuteState(3); - toi.audioOutputService.setMuteState(3, !state); + state = toi.audioOutputService.getMuteState(AudioOut); + toi.audioOutputService.setMuteState(AudioOut, !state); mute = 1 - state; osdmute.style.opacity = mute; break; @@ -436,14 +425,14 @@ function onKeyDown(event) { if (Volume > 100) { Volume = 100; } - toi.audioOutputService.setVolume(3, Volume); + toi.audioOutputService.setVolume(AudioOut, Volume); break; case "VolumeDown": Volume = Volume - 10; if (Volume < 0) { Volume = 0; } - toi.audioOutputService.setVolume(3, Volume); + toi.audioOutputService.setVolume(AudioOut, Volume); break; case "MediaRewind": @@ -538,18 +527,15 @@ function OSD(opacity) { osdname.style.opacity = opacity; osdepg.style.opacity = opacity; osdca.style.opacity = opacity; + osdtimer.style.opacity = opacity; } function SetOsdInfo() { OSDchannr(currChan); date_time(); - osdtime.innerHTML = "<font color=white size=2>" + result +"</font>"; - osdname.innerHTML = "<font color=black size=5>" + Left(channelsnames[currChan],30) + "</font>"; GetEPG(currChan); - osdepg.innerHTML = "<font color=white size=4><p>" + EPGNow + "</p>\n<p>" + EPGNext + "<\p></font>"; - osdepginfo.innerHTML = "<center><font color=white size=4><p>" + EPGNow + "</p>\n<p>" + EPGShortnow + "</p>\n<p>" + Left(EPGExtnow,750) + "<\p></font></center>"; - osdepginfonext.innerHTML = "<center><font color=white size=4><p>" + EPGNext + "</p>\n<p>" + EPGShortnext + "</p>\n<p>" + Left(EPGExtnext,750) + "<\p></font></center>"; + OSDhtml(); return; } @@ -557,6 +543,15 @@ function OSDchannr(channr) { osdnr.innerHTML = "<center><font color=black size=6>" + channr + "</font></center>"; } +function OSDhtml(){ + osdtime.innerHTML = "<font color=white size=2>" + result +"</font>"; + osdname.innerHTML = "<font color=black size=5>" + Left(channelsnames[currChan],30) + "</font>"; + osdepg.innerHTML = "<font color=white size=4><p>" + EPGNow + "</p>\n<p>" + EPGNext + "</p></font>"; + osdepginfo.innerHTML = "<center><font color=white size=4><p>" + EPGNow + "</p>\n<p>" + EPGShortnow + "</p>\n<p>" + Left(EPGExtnow,750) + "</p></font></center>"; + osdepginfonext.innerHTML = "<center><font color=white size=4><p>" + EPGNext + "</p>\n<p>" + EPGShortnext + "</p>\n<p>" + Left(EPGExtnext,750) + "</p></font></center>"; +} + + function settimer() { if(SwitchTimer) { @@ -908,7 +903,7 @@ function showChannelList() { } htmlstring = htmlstring + "</table>"; channelList.innerHTML = htmlstring; - chanlistepg.innerHTML = "<center><font color=black size=4><p>" + EPG[NowNext][1][currChan] + "</p></font><font color=black size=3><p>" + Left(EPG[NowNext][4][currChan],250) + "<\p></font></center>" ; + chanlistepg.innerHTML = "<center><font color=black size=4><p>" + EPG[NowNext][1][currChan] + "</p></font><font color=black size=3><p>" + Left(EPG[NowNext][4][currChan],250) + "</p></font></center>" ; } @@ -932,9 +927,9 @@ function embedTeletextPlugin() { function setVisible(isVisible) { if (isVisible) { - document.body.appendChild(teletext); videoplane.style.width = "50%"; videoplane.style.left = "50%"; + document.body.appendChild(teletext); teletext.style.width = "50%"; teletext.style.visibility = "visible"; channelList.style.visibility = "hidden"; diff --git a/settings.js b/settings.js index 7346123..9895633 100644 --- a/settings.js +++ b/settings.js @@ -9,6 +9,14 @@ var channelsepglang = new Array(); var isFullscreen = 1; // start TV(1) or guide(0) var StartVolume = 50; var Volume = StartVolume; +var AudioOut = 3; +// AUDIO_CONNECTION_TYPE_ANALOG = 0 +// AUDIO_CONNECTION_TYPE_SPDIF = 1 +// AUDIO_CONNECTION_TYPE_HDMI = 2 +// AUDIO_CONNECTION_TYPE_DECODER = 3 +// AUDIO_CONNECTION_TYPE_BUFFER = 4 +// AUDIO_CONNECTION_TYPE_I2S = 5 + var currChan = 10; // default channel var epgchan = currChan; var prevChan = currChan; |
