From b84a63e4021487e457d5c96d1f13e0e7a2f1f4a9 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Mon, 16 Sep 2013 14:41:51 +0200 Subject: FIX: set resolution --- index.html | 37 ++----------------------------------- 1 file 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); -- cgit v1.2.3