summaryrefslogtreecommitdiff
path: root/smarttv-client/Javascript/Main.js
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2013-01-01 22:07:29 +0100
committerthlo <t.lohmar@gmx.de>2013-01-01 22:07:29 +0100
commit5e7dd2b6168036235633b5bc8d55e73cf90da5a1 (patch)
tree02d445015e130d32834cf58bb4d1a6a43a30bc0c /smarttv-client/Javascript/Main.js
parentda588f73fb6620ed73821ea1f9d959b4489c6260 (diff)
downloadvdr-plugin-smarttvweb-5e7dd2b6168036235633b5bc8d55e73cf90da5a1.tar.gz
vdr-plugin-smarttvweb-5e7dd2b6168036235633b5bc8d55e73cf90da5a1.tar.bz2
Native Volume OSD also visible on 2011 Models.
Seeking duration (Jump Forward and Backward) now adjustable during playback. Minor Bug Fixes.
Diffstat (limited to 'smarttv-client/Javascript/Main.js')
-rwxr-xr-xsmarttv-client/Javascript/Main.js22
1 files changed, 19 insertions, 3 deletions
diff --git a/smarttv-client/Javascript/Main.js b/smarttv-client/Javascript/Main.js
index 7d71e4d..da302d8 100755
--- a/smarttv-client/Javascript/Main.js
+++ b/smarttv-client/Javascript/Main.js
@@ -66,7 +66,12 @@ var Main = {
};
Main.onLoad = function() {
- window.onShow = showHandler;
+ if (typeof(window.onShow) == "function" ) {
+ window.onShow = showHandler;
+ }
+ if (typeof(window.onshow) == "function" ) {
+ window.onshow = showHandler;
+ }
Network.init();
try {
@@ -376,7 +381,7 @@ Main.playItem = function (url) {
document.getElementById("olRecProgressBar").display="none";
}
Display.setOlTitle(Data.getCurrentItem().childs[Main.selectedVideo].title);
- Display.olStartStop = "";
+ Display.resetStartStop();
break;
};
@@ -889,6 +894,10 @@ cPlayStateKeyHndl.prototype.handleKeyDown = function () {
Player.resumeVideo();
}
Player.ResetTrickPlay();
+ if (Display.isProgressOlShown()) {
+ Player.adjustSkipDuration(0); // reset skip duration to default
+ Display.resetStartStop();
+ }
Display.showProgress();
break;
case tvKey.KEY_RETURN:
@@ -904,7 +913,14 @@ cPlayStateKeyHndl.prototype.handleKeyDown = function () {
Main.log("PAUSE");
Player.pauseVideo();
break;
-
+ case tvKey.KEY_UP:
+ Player.adjustSkipDuration(1);
+ Display.showProgress();
+ break;
+ case tvKey.KEY_DOWN:
+ Player.adjustSkipDuration(2);
+ Display.showProgress();
+ break;
/* case tvKey.KEY_UP:
case tvKey.KEY_PANEL_VOL_UP:
case tvKey.KEY_VOL_UP: