summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2013-09-16 14:41:51 +0200
committerM. Voerman <rekordc@gmail.com>2013-09-16 14:41:51 +0200
commitb84a63e4021487e457d5c96d1f13e0e7a2f1f4a9 (patch)
treeb0f980b9fc3f6f58ef54fcdcc41636269eb530fd
parent4a84b562a46ded38e0a3289e5ea2bf6f9d0331fe (diff)
downloadvdr-vipclient-b84a63e4021487e457d5c96d1f13e0e7a2f1f4a9.tar.gz
vdr-vipclient-b84a63e4021487e457d5c96d1f13e0e7a2f1f4a9.tar.bz2
FIX: set resolution
-rw-r--r--index.html37
1 files changed, 2 insertions, 35 deletions
diff --git a/index.html b/index.html
index ae1c4c4..1186f3e 100644
--- a/index.html
+++ b/index.html
@@ -379,38 +379,6 @@ function onDataAvailableEvent(event) {
function updateStreamInfo(currStream) {
-//alert("What can this stream do : " + mediaPlayer.getCapabilities());
- var mpCap = "";
-if (mediaPlayer.getCapabilities() & 1) {
- // bit is set
- mpCap = " CAPABILITY_PAUSE ";
-}
-if (mediaPlayer.getCapabilities() & 2) {
- // bit is set
- mpCap = mpCap + "CAPABILITY_REWIND ";
-}
-if (mediaPlayer.getCapabilities() & 4) {
- // bit is set
- mpCap = mpCap + "CAPABILITY_FASTFORWARD ";
-}
-if (mediaPlayer.getCapabilities() & 8) {
- // bit is set
- mpCap = mpCap + "CAPABILITY_GETPOSITION ";
-}
-if (mediaPlayer.getCapabilities() & 16) {
- // bit is set
- mpCap = mpCap + "CAPABILITY_SETPOSITION ";
-}
-if (mediaPlayer.getCapabilities() & 32) {
- // bit is set
- mpCap = mpCap + "CAPABILITY_FREEZE ";
-}
-if (mediaPlayer.getCapabilities() & 64) {
- // bit is set
- mpCap = mpCap + "CAPABILITY_TIMESHIFT ";
-}
-// alert (mpCap);
-
var streamInfo = mediaPlayer.getStreamInfo();
var cList = streamInfo.availableComponents;
var x;
@@ -472,9 +440,6 @@ videoConfig = toi.videoOutputService.getVideoConfiguration();
session.apply();
session.releaseInstance();
- // save the info
- toi.informationService.setObject("vip.resolution",Set_Res,toi.informationService.STORAGE_PERMANENT)
-
}
catch (e) {
if (session != null) {
@@ -2056,6 +2021,8 @@ function onKeyMenu(keyCode) {
if (menu == 1) {
Set_Res = Set_Res + 1;
if (Set_Res > (VideoOutputModes.length-1)) { Set_Res = 0;}
+ // save the info
+ toi.informationService.setObject("vip.resolution",Set_Res.toString(),toi.informationService.STORAGE_PERMANENT)
VideoOutput();
InitMenu(menu);