summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2013-01-05 22:57:10 +0100
committerthlo <t.lohmar@gmx.de>2013-01-05 22:57:10 +0100
commit67628780e113ae61ef49b1e458f531b7197ee93b (patch)
tree0b12bca3721b960105e454f85ab19134c07fb802
parent0adab5a1ba140dda76e34a9347d69247c4de2263 (diff)
downloadvdr-plugin-smarttvweb-67628780e113ae61ef49b1e458f531b7197ee93b.tar.gz
vdr-plugin-smarttvweb-67628780e113ae61ef49b1e458f531b7197ee93b.tar.bz2
Disable screen saver during playback.
Basic BD Player Front Panel Feedback. Fix for native Vol OSD. Bug Fixes.
-rwxr-xr-xsmarttv-client/Javascript/Display.js5
-rwxr-xr-xsmarttv-client/Javascript/Main.js11
-rwxr-xr-xsmarttv-client/Javascript/Player.js33
-rwxr-xr-xsmarttv-client/config.xml4
-rwxr-xr-xsmarttv-client/index.html12
5 files changed, 39 insertions, 26 deletions
diff --git a/smarttv-client/Javascript/Display.js b/smarttv-client/Javascript/Display.js
index 71b4c71..483a141 100755
--- a/smarttv-client/Javascript/Display.js
+++ b/smarttv-client/Javascript/Display.js
@@ -47,6 +47,7 @@ Display.init = function()
{
success = false;
}
+
for (var i = 0; i <= this.LASTIDX; i++) {
var elm = document.getElementById("video"+i);
elm.style.paddingLeft = "10px";
@@ -56,6 +57,7 @@ Display.init = function()
var done = false;
var i = 0;
+
while (done != true) {
i ++;
var elm = document.getElementById("selectItem"+i);
@@ -516,8 +518,7 @@ Display.hide = function()
document.getElementById("main").style.display="none";
};
-Display.show = function()
-{
+Display.show = function() {
// cancel ongoing overlays first
this.volOlHandler.cancel();
this.progOlHandler.cancel();
diff --git a/smarttv-client/Javascript/Main.js b/smarttv-client/Javascript/Main.js
index da302d8..3294f02 100755
--- a/smarttv-client/Javascript/Main.js
+++ b/smarttv-client/Javascript/Main.js
@@ -66,12 +66,8 @@ var Main = {
};
Main.onLoad = function() {
- if (typeof(window.onShow) == "function" ) {
- window.onShow = showHandler;
- }
- if (typeof(window.onshow) == "function" ) {
- window.onshow = showHandler;
- }
+ window.onShow = showHandler;
+ window.onshow = showHandler;
Network.init();
try {
@@ -101,7 +97,7 @@ Main.onLoad = function() {
showHandler = function() {
NNaviPlugin = document.getElementById("pluginObjectNNavi");
- NNaviPlugin.SetBannerState(2);
+ NNaviPlugin.SetBannerState(1);
pluginObj.unregistKey(tvKey.KEY_VOL_UP);
pluginObj.unregistKey(tvKey.KEY_VOL_DOWN);
@@ -112,7 +108,6 @@ showHandler = function() {
// Called by Config, when done
-// TODO: Send sendReadyEvent early and show a splash screen during startup
Main.init = function () {
Main.log("Main.init()");
if ( Player.init() && Server.init() && Audio.init()) {
diff --git a/smarttv-client/Javascript/Player.js b/smarttv-client/Javascript/Player.js
index d54a761..72c6d30 100755
--- a/smarttv-client/Javascript/Player.js
+++ b/smarttv-client/Javascript/Player.js
@@ -5,6 +5,8 @@
var Player =
{
plugin : null,
+ pluginBD : null,
+ mFrontPanel : null,
isLive : false,
isRecording : false,
@@ -42,7 +44,9 @@ Player.init = function() {
this.state = this.STOPPED;
this.plugin = document.getElementById("pluginPlayer");
-
+ this.pluginBD = document.getElementById("pluginBD");
+ this.pluginBD.DisplayVFD_Show(0101); // Stop
+
/* var pl_version = "";
try {
pl_version = this.plugin.GetPlayerVersion();
@@ -148,9 +152,11 @@ Player.playVideo = function() {
if (this.url == null) {
Main.log("No videos to play");
}
- else
- {
+ else {
+ Player.bufferState = 0;
+ Display.bufferUpdate();
+
// Player.curPlayTime = 0;
Display.updatePlayTime();
@@ -159,31 +165,35 @@ Player.playVideo = function() {
Display.showProgress();
this.state = this.PLAYING;
- if (this.plugin.InitPlayer(this.url) == false)
- Display.showPopup("InitPlayer returns false");
+// if (this.plugin.InitPlayer(this.url) == false)
+// Display.showPopup("InitPlayer returns false");
Player.setBuffer(15000000.0);
Player.ResetTrickPlay();
Player.skipDuration = Config.skipDuration; // reset
Main.log ("StartPlayback for " + this.url);
- if (this.plugin.StartPlayback() == false)
- Display.showPopup("StartPlayback returns false");
+// if (this.plugin.StartPlayback() == false)
+// Display.showPopup("StartPlayback returns false");
-// this.plugin.Play( this.url );
+ this.plugin.Play( this.url );
Audio.plugin.SetSystemMute(false);
+ pluginObj.setOffScreenSaver();
+ this.pluginBD.DisplayVFD_Show(0100); // Play
}
};
Player.pauseVideo = function() {
Display.showProgress();
Main.logToServer("pauseVideo");
-
+
this.state = this.PAUSED;
Display.status("Pause");
var res = this.plugin.Pause();
if (res == false)
Display.showPopup("pause ret= " + ((res == true) ? "True" : "False"));
+ pluginAPI.setOnScreenSaver();
+ this.pluginBD.DisplayVFD_Show(0102); // Pause
};
Player.stopVideo = function() {
@@ -197,6 +207,8 @@ Player.stopVideo = function() {
if (this.stopCallback) {
this.stopCallback();
}
+ pluginAPI.setOnScreenSaver();
+ this.pluginBD.DisplayVFD_Show(0101); // Stop
}
else {
Main.log("Ignoring stop request, not in correct state");
@@ -211,7 +223,8 @@ Player.resumeVideo = function() {
var res = this.plugin.Resume();
if (res == false)
Display.showPopup("resume ret= " + ((res == true) ? "True" : "False"));
-
+ pluginObj.setOffScreenSaver();
+ this.pluginBD.DisplayVFD_Show(0100); // Play
};
Player.jumpToVideo = function(percent) {
diff --git a/smarttv-client/config.xml b/smarttv-client/config.xml
index 5f9c48f..81588b6 100755
--- a/smarttv-client/config.xml
+++ b/smarttv-client/config.xml
@@ -9,7 +9,7 @@
<BigThumbIcon>Images/icon/SmartTvWeb_115.png</BigThumbIcon>
<ListIcon>Images/icon/SmartTvWeb_85.png</ListIcon>
<BigListIcon>Images/icon/SmartTvWeb_95.png</BigListIcon>
- <ver>0.82</ver>
+ <ver>0.83</ver>
<mgrver></mgrver>
<fullwidget>y</fullwidget>
<movie>y</movie>
@@ -25,7 +25,7 @@
<height>540</height>
<author>
<name>T. Lohmar</name>
- <email></email>
+ <email>smarttv640@gmail.com</email>
<link></link>
<organization>Private</organization>
</author>
diff --git a/smarttv-client/index.html b/smarttv-client/index.html
index 3f4660a..f9d969c 100755
--- a/smarttv-client/index.html
+++ b/smarttv-client/index.html
@@ -32,16 +32,21 @@
<object id="pluginPlayer" border=0 classid="clsid:SAMSUNG-INFOLINK-PLAYER"></object>
<object id="pluginAudio" border=0 classid="clsid:SAMSUNG-INFOLINK-AUDIO"></object>
<object id="pluginTime" border=0 classid="clsid:SAMSUNG-INFOLINK-TIME"></object>
- <object id="pluginObjectTVMW" border=0 classid="clsid:SAMSUNG-INFOLINK-TVMW"></object>
- <object id="pluginObjectNNavi" border=0 classid="clsid:SAMSUNG-INFOLINK-NNAVI"></object>
+ <object id="pluginObjectTVMW" border=0 classid="clsid:SAMSUNG-INFOLINK-TVMW"></object>
+ <object id="pluginObjectVideo" border=0 classid="clsid:SAMSUNG-INFOLINK-VIDEO"></object>
+ <object id="pluginObjectNNavi" border=0 classid="clsid:SAMSUNG-INFOLINK-NNAVI"></object>
+ <object id="pluginObjectAppCommon" border=0 classid="clsid:SAMSUNG-INFOLINK-APPCOMMON"></object>
+
<object id="pluginNetwork" border=0 classid="clsid:SAMSUNG-INFOLINK-NETWORK"></object>
<object id="pluginTaskmgnt" border=0 classid="clsid:SAMSUNG-INFOLINK-TASKMANAGER"></object>
+ <object id="pluginBD" border=0 classid="clsid:SAMSUNG-INFOLINK-FRONTPANEL"></object>
+
- <script type="text/javascript" src="$MANAGER_WIDGET/Common/OpenSrc/jquery-1.4.2.min.js"></script>
</head>
<body onload="Main.onLoad();" onunload="Main.onUnload();">
+ <script type="text/javascript" src="$MANAGER_WIDGET/Common/OpenSrc/jquery-1.4.2.min.js"></script>
<script type="text/javascript" language="javascript" src="$MANAGER_WIDGET/Common/IME_XT9/ime.js"></script>
<script type="text/javascript" src="$MANAGER_WIDGET/Common/IME_XT9/inputCommon/ime_input.js"></script>
<script language="javascript" type="text/javascript" src="Javascript/Options.js"></script>
@@ -96,7 +101,6 @@
<div id="video13"></div>
<div id="video14"></div>
<div id="video15"></div>
- <div id="video16"></div>
</div>
</div>
</div>