From 478222ca3bee5e20432dcc052a74e955d3fa255a Mon Sep 17 00:00:00 2001 From: thlo Date: Mon, 9 Jun 2014 12:56:48 +0200 Subject: * Time zone and no time source issue fixed * Commands Menu Entry (when enabled in plugin) * Fix of sorting bug (blue key in recordings) * Improved buffering tuning for Live * Fixes with respect to using HLS for Recordings * Touch Remote Control support * New 21:9 crop (picture size key) * Making additional notifications (such as Recording has finished) optional * Show Language Code for Audio Track Select * Bug Fixes --- smarttv-client/Javascript/Comm.js | 44 +++++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 13 deletions(-) (limited to 'smarttv-client/Javascript/Comm.js') diff --git a/smarttv-client/Javascript/Comm.js b/smarttv-client/Javascript/Comm.js index 9ae9a44..ba327a6 100644 --- a/smarttv-client/Javascript/Comm.js +++ b/smarttv-client/Javascript/Comm.js @@ -15,12 +15,16 @@ Comm.init = function () { if (Config.deviceType != 0) return; - Comm.customMgr = webapis.customdevice || {}; - - Comm.customMgr.registerManagerCallback(Comm.onDeviceStatusChange); - - // >> Initializes custom device profile and gets available devices - Comm.customMgr.getCustomDevices(Comm.onCustomObtained); + try { + Comm.customMgr = webapis.customdevice || {}; + + Comm.customMgr.registerManagerCallback(Comm.onDeviceStatusChange); + + // >> Initializes custom device profile and gets available devices + Comm.customMgr.getCustomDevices(Comm.onCustomObtained); + } + catch (e) { + } Main.log("curWidget.id= " + curWidget.id); Main.logToServer("curWidget.id= (" + curWidget.id+")"); }; @@ -123,29 +127,43 @@ Comm.onMessageReceived = function(message, context) { Main.logToServer("INFO: type= " + msg.payload.type + " val= " + msg.payload.name); switch(msg.payload.type) { case "RECSTART": - Notify.showNotify("Recording started: '" + msg.payload.name +"'", true); if (Main.state == Main.eREC) { Server.updateEntry(msg.payload.guid); } + + if (Config.showInfoMsgs == true) + Notify.showNotify("Recording started: '" + msg.payload.name +"'", true); break; case "RECSTOP": - Notify.showNotify("Recording finished: " + msg.payload.name+"'", true); + if (Config.showInfoMsgs == true) + Notify.showNotify("Recording finished: " + msg.payload.name+"'", true); break; case "TCADD": - Notify.showNotify("Timer added: '" + msg.payload.name+"'", true); if (Main.state == Main.eTMR) { Timers.resetView(); + Notify.showNotify("Timer added: '" + msg.payload.name+"'", true); } + else + if (Config.showInfoMsgs == true) + Notify.showNotify("Timer added: '" + msg.payload.name+"'", true); + break; case "TCMOD": - Notify.showNotify("Timer modified: '" + msg.payload.name+"'", true); if (Main.state == Main.eTMR) { - Timers.resetView(); } + Timers.resetView(); + Notify.showNotify("Timer modified: '" + msg.payload.name+"'", true); + } + else if (Config.showInfoMsgs == true) + Notify.showNotify("Timer modified: '" + msg.payload.name+"'", true); + break; case "TCDEL": - Notify.showNotify("Timer deleted: '" + msg.payload.name+"'", true); if (Main.state == Main.eTMR) { - Timers.resetView(); } + Timers.resetView(); + Notify.showNotify("Timer deleted: '" + msg.payload.name+"'", true); + } + else if (Config.showInfoMsgs == true) + Notify.showNotify("Timer deleted: '" + msg.payload.name+"'", true); break; } -- cgit v1.2.3