Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91cd321a59 | ||
|
|
baf7697664 | ||
|
|
16ecff93d8 | ||
|
|
f2e0890c3d | ||
|
|
98e8db71fe |
@@ -3,11 +3,11 @@
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.ui_utils.css">
|
||||
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.error.css">
|
||||
<link rel="stylesheet" href="/procentric/application/css/owlcarousel/owl.carousel.min.css">
|
||||
<link rel="stylesheet" href="/procentric/application/css/owlcarousel/owl.theme.default.min.css">
|
||||
<link rel="stylesheet" href="/procentric/application/css/acmeticker/style.css">
|
||||
<link rel="stylesheet" href="./theme/hoteltv.ui_utils.css">
|
||||
<link rel="stylesheet" href="./theme/hoteltv.error.css">
|
||||
<link rel="stylesheet" href="./css/owlcarousel/owl.carousel.min.css">
|
||||
<link rel="stylesheet" href="./css/owlcarousel/owl.theme.default.min.css">
|
||||
<link rel="stylesheet" href="./css/acmeticker/style.css">
|
||||
<title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title>
|
||||
</head>
|
||||
|
||||
@@ -365,28 +365,28 @@
|
||||
|
||||
|
||||
<!-- Standard & 3rd party Library -->
|
||||
<script src="/procentric/application/lib/jquery-3.6.0.min.js"></script>
|
||||
<script src="/procentric/application/lib/jquery.color-2.1.2.min.js"></script>
|
||||
<script src="/procentric/application/lib/jquery.webticker.min.js"></script>
|
||||
<script src="/procentric/application/lib/xml2json.js"></script>
|
||||
<script src="/procentric/application/lib/owl.carousel.min.js"></script>
|
||||
<script src="./lib/jquery-3.6.0.min.js"></script>
|
||||
<script src="./lib/jquery.color-2.1.2.min.js"></script>
|
||||
<script src="./lib/jquery.webticker.min.js"></script>
|
||||
<script src="./lib/xml2json.js"></script>
|
||||
<script src="./lib/owl.carousel.min.js"></script>
|
||||
|
||||
<!-- LG HCAP Library -->
|
||||
<script src="/procentric/application/lib/hcap.js"></script>
|
||||
<script src="/procentric/application/lib/idcap.js"></script>
|
||||
<script src="./lib/hcap.js"></script>
|
||||
<script src="./lib/idcap.js"></script>
|
||||
|
||||
<!-- CENTIRM HOTELTV Library -->
|
||||
<script src="/procentric/application/lib/hoteltv.js"></script>
|
||||
<script src="/procentric/application/lib/hoteltv.ui_utils.js"></script>
|
||||
<script src="/procentric/application/lib/hoteltv.ui_appfull.js"></script>
|
||||
<script src="/procentric/application/lib/hoteltv.hcap.js"></script>
|
||||
<script src="/procentric/application/lib/hoteltv.api.js"></script>
|
||||
<script src="./lib/hoteltv.js"></script>
|
||||
<script src="./lib/hoteltv.ui_utils.js"></script>
|
||||
<script src="./lib/hoteltv.ui_appfull.js"></script>
|
||||
<script src="./lib/hoteltv.hcap.js"></script>
|
||||
<script src="./lib/hoteltv.api.js"></script>
|
||||
|
||||
<!-- MQTT Library -->
|
||||
<script src="/procentric/application/lib/mqtt.min.js"></script>
|
||||
<script src="./lib/mqtt.min.js"></script>
|
||||
|
||||
<!-- ACMETICKER Library -->
|
||||
<script src="/procentric/application/lib/acmeticker.js"></script>
|
||||
<script src="./lib/acmeticker.js"></script>
|
||||
|
||||
|
||||
<script>
|
||||
@@ -410,7 +410,7 @@
|
||||
"/hoteltv.app.full.popup.css"];
|
||||
for ( let _idx=0; _idx<needed_css_files.length; _idx++ )
|
||||
{
|
||||
$('head:first').append('<link rel="stylesheet" type="text/css" href="/procentric/application/theme/'
|
||||
$('head:first').append('<link rel="stylesheet" type="text/css" href="./theme/'
|
||||
+ HotelTV.state['theme_root'] + needed_css_files[_idx] + '" />');
|
||||
}
|
||||
console.log("Documents loaded...")
|
||||
@@ -439,10 +439,10 @@
|
||||
}
|
||||
break;
|
||||
case 409:
|
||||
HotelTV.hcap.PwrOff();
|
||||
HotelTV.hal.PwrOff();
|
||||
break;
|
||||
case 457: // INFO Key
|
||||
HotelTV.hcap.GetScrshot();
|
||||
HotelTV.hal.GetScrshot();
|
||||
break;
|
||||
default:
|
||||
//console.log(`KEY::${e.keyCode}`);
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.ui_utils.css">
|
||||
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.error.css">
|
||||
<link rel="stylesheet" href="./theme/hoteltv.ui_utils.css">
|
||||
<link rel="stylesheet" href="./theme/hoteltv.error.css">
|
||||
<title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title>
|
||||
</head>
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
* Created at : 2020-11-26 02:21:56
|
||||
* Last modified : 2020-11-26 15:31:40
|
||||
*/
|
||||
HotelTV.namespace('HotelTV.hcap');
|
||||
HotelTV.hcap = (function() {
|
||||
HotelTV.namespace('HotelTV.hal');
|
||||
HotelTV.hal = (function() {
|
||||
//// 의존 관계 선언
|
||||
|
||||
|
||||
@@ -46,6 +46,11 @@ HotelTV.hcap = (function() {
|
||||
'end_of_item'
|
||||
];
|
||||
|
||||
let hcap_property_installer_menuItem_key = [
|
||||
hcap.property.InstallerMenuItem.POWER_MANAGE,
|
||||
hcap.property.InstallerMenuItem.MAX_VOLUME
|
||||
];
|
||||
|
||||
|
||||
|
||||
const g_media = {
|
||||
@@ -113,7 +118,7 @@ HotelTV.hcap = (function() {
|
||||
};
|
||||
|
||||
/**
|
||||
* HCAP Wrapper Function::> Get Device Properties(Realted HCAP API:hcap.property.setProperty)
|
||||
* HCAP Wrapper Function::> Set Device Properties(Realted HCAP API:hcap.property.setProperty)
|
||||
* @param {string} sz_key property key name.
|
||||
* @param {object} value is object to setting property
|
||||
*/
|
||||
@@ -129,6 +134,39 @@ HotelTV.hcap = (function() {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* HCAP Wrapper Function::> Get Installer Menu Item(Realted HCAP API:hcap.property.getInstallerMenuItem)
|
||||
* @param {string} sz_key installer menu item key name.
|
||||
*/
|
||||
function __hcapfxn_get_installer_menuItem(sz_key) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let param = {
|
||||
"key": sz_key,
|
||||
"onSuccess": function(s) { resolve({ "key": sz_key, "value": s.value }) },
|
||||
//"onFailure": function(f) { reject({ "key": sz_key, "value": "unknown" }) }
|
||||
"onFailure": function(f) { resolve({ "key": sz_key, "value": "unknown" }) }
|
||||
};
|
||||
hcap.property.getInstallerMenuItem(param);
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* HCAP Wrapper Function::> Set Installer Menu Item(Realted HCAP API:hcap.property.setInstallerMenuItem)
|
||||
* @param {string} sz_key installer menu item key name.
|
||||
* @param {object} value is object to setting installer menu item
|
||||
*/
|
||||
function __hcapfxn_set_installer_menuItem(sz_key, value) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let param = {
|
||||
"key": sz_key,
|
||||
"value": value.toString(),
|
||||
"onSuccess": function(s) { resolve({ "key": sz_key, "value": value }) },
|
||||
"onFailure": function(f) { resolve({ "key": sz_key, "value": "unknown" }) }
|
||||
};
|
||||
hcap.property.setInstallerMenuItem(param);
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* IDCAP Wrapper Function::> Get Device Configuration(Properties)(Realted IDCAP API:idcap://configuration/property/get)
|
||||
* @param {string} sz_key property key name.
|
||||
@@ -667,6 +705,39 @@ HotelTV.hcap = (function() {
|
||||
__hcapfxn_Reboot();
|
||||
},
|
||||
|
||||
GetNetworkStatus: function() {
|
||||
return new Promise((resolve, reject) => {
|
||||
hcap.network.getNetworkInformation({
|
||||
"onSuccess" : function(s) {
|
||||
console.log("onSuccess : network_mode = " + s.network_mode +
|
||||
"\n ssid = " + s.ssid +
|
||||
"\n eth_speed = " + s.eth_speed +
|
||||
"\n eth_duplex = " + s.eth_duplex +
|
||||
"\n local_network_available = " + s.local_network_available +
|
||||
"\n internet_available = " + s.internet_available +
|
||||
"\n wifi_mode = " + s.wifi_mode +
|
||||
"\n wireless_security_type = " + s.wireless_security_type +
|
||||
"\n wifi_pass_key = " + s.wifi_pass_key +
|
||||
"\n using_dhcp = " + s.using_dhcp +
|
||||
"\n ip_address = " + s.ip_address +
|
||||
"\n subnet_mask = " + s.subnet_mask +
|
||||
"\n gateway = " + s.gateway +
|
||||
"\n dns1_address = " + s.dns1_address +
|
||||
"\n dns2_address = " + s.dns2_address +
|
||||
"\n dns_dhcp = " + s.dns_dhcp +
|
||||
"\n ethernet_plugged = " + s.ethernet_plugged +
|
||||
"\n wifi_plugged = " + s.wifi_plugged +
|
||||
"\n dhcp_state = " + s.dhcp_state);
|
||||
resolve({ "error": false, "info": s });
|
||||
},
|
||||
"onFailure" : function(f) {
|
||||
console.log("onFailure : errorMessage = " + f.errorMessage);
|
||||
resolve({ "error": true, "info": null });
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
GetDevInfo: function() {
|
||||
return new Promise((resolve, reject) => {
|
||||
@@ -922,10 +993,39 @@ HotelTV.hcap = (function() {
|
||||
let _instant_pwr_target_mode = Number(_devconfig.system.misc.instantPower);
|
||||
if (_devinfo["instant_power"] != _instant_pwr_target_mode) {
|
||||
_pmFxnArProperty.push(__hcapfxn_set_property('instant_power', _instant_pwr_target_mode));
|
||||
|
||||
// hcap.property.InstallerMenuItem.POWER_MANAGE 설정
|
||||
if ( _instant_pwr_target_mode==2 ) {
|
||||
//
|
||||
hcap.property.setInstallerMenuItem({
|
||||
"key" : hcap.property.InstallerMenuItem.POWER_MANAGE,
|
||||
"value" : 8,
|
||||
"onSuccess" : function() {
|
||||
console.log("onSuccess");
|
||||
},
|
||||
"onFailure" : function(f) {
|
||||
console.log("onFailure : errorMessage = " + f.errorMessage);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// Sets number of hours of no activity before automatic shut off. (0 ~ 7)
|
||||
hcap.property.setInstallerMenuItem({
|
||||
"key" : hcap.property.InstallerMenuItem.POWER_MANAGE,
|
||||
"value" : 0,
|
||||
"onSuccess" : function() {
|
||||
console.log("onSuccess");
|
||||
},
|
||||
"onFailure" : function(f) {
|
||||
console.log("onFailure : errorMessage = " + f.errorMessage);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if ( _instant_pwr_target_mode==2 || _instant_pwr_target_mode==1 ){
|
||||
_pmFxnArProperty.push(__hcapfxn_set_powermode('power_mode', hcap.power.PowerMode.WARM));
|
||||
if (_devinfo["power_mode"] != hcap.power.PowerMode.WARM) {
|
||||
_pmFxnArProperty.push(__hcapfxn_set_powermode('power_mode', hcap.power.PowerMode.WARM));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1410,7 +1510,7 @@ HotelTV.hcap = (function() {
|
||||
"onSuccess": function(s) {
|
||||
if (_en_show_msg == true) {
|
||||
console.log("register Success!");
|
||||
HotelTV.hcap.PreAppGetInfo(true);
|
||||
HotelTV.hal.PreAppGetInfo(true);
|
||||
}
|
||||
},
|
||||
"onFailure": function(f) {
|
||||
@@ -1738,7 +1838,7 @@ HotelTV.hcap = (function() {
|
||||
},
|
||||
|
||||
/**
|
||||
* _keyValue는 아래 코드중 하나
|
||||
* _keyValue는 아래 코드중 하나
|
||||
* hcap.key.Code.ENTER
|
||||
* hcap.key.Code.LEFT
|
||||
* hcap.key.Code.RIGHT
|
||||
@@ -1747,12 +1847,12 @@ HotelTV.hcap = (function() {
|
||||
* hcap.key.Code.DOWN
|
||||
* hcap.key.Code.CH_UP
|
||||
* hcap.key.Code.CH_DOWN
|
||||
* @param {enum} _keyValue
|
||||
* @param {enum} _keyValue
|
||||
*/
|
||||
SendVirKeyEvent: function(_keyValue) {
|
||||
hcap.key.sendKey({
|
||||
"virtualKeycode" : _keyValue,
|
||||
"onSuccess" : function() { },
|
||||
"onSuccess" : function() { },
|
||||
"onFailure" : function(f) {
|
||||
console.error("onFailure : errorMessage = " + f.errorMessage);
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ function __fxn_Set_DebugOpt(_enable, _out_option, _init) {
|
||||
HotelTV.dbginfo['en'] = _enable;
|
||||
HotelTV.dbginfo['output'] = _out_option;
|
||||
|
||||
HotelTV.hcap.Init();
|
||||
HotelTV.hal.Init();
|
||||
|
||||
/** Develop Mode definitions */
|
||||
console.log("OPT" + navigator.appVersion);
|
||||
@@ -144,7 +144,7 @@ function __fxn_Set_DebugOpt(_enable, _out_option, _init) {
|
||||
/** Set HCAP Debug Options */
|
||||
if (HotelTV.dbginfo['emulator'] == false) {
|
||||
//Enable/Disable browser debug mode
|
||||
HotelTV.hcap.SetBrowserDebug(HotelTV.dbginfo['hcap_ipc'], HotelTV.dbginfo['webdebugger']);
|
||||
HotelTV.hal.SetBrowserDebug(HotelTV.dbginfo['hcap_ipc'], HotelTV.dbginfo['webdebugger']);
|
||||
}
|
||||
} else if (navigator.appVersion.includes("Tizen") == true) {
|
||||
HotelTV.dbginfo['emulator'] = false;
|
||||
@@ -204,7 +204,7 @@ HotelTV.Init = async function() {
|
||||
console.log("Start Initialization:: ");
|
||||
|
||||
//STEP#01::> Shutdown Channel
|
||||
HotelTV.hcap.ChannelShutDown();
|
||||
HotelTV.hal.ChannelShutDown();
|
||||
|
||||
//SETP#02::> Set Debug Options
|
||||
__fxn_Set_DebugOpt(false, 'osd', false);
|
||||
@@ -212,11 +212,57 @@ HotelTV.Init = async function() {
|
||||
|
||||
//STEP#03::> Get Device Info
|
||||
HotelTV.ui_utils.SetBusy(true);
|
||||
|
||||
const __ifxn_showFatalErr_Network = function() {
|
||||
let _tmval = 10;
|
||||
setTimeout(HotelTV.hal.Reboot, 10000);
|
||||
HotelTV.ui_utils.SetBusy(false);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.error.get-devinfo",
|
||||
"SYSTEM ERROR",
|
||||
"Network is un-available.\r\nplease contact your system administrator.", {
|
||||
"timeout": _tmval,
|
||||
"cb_disp": function() {
|
||||
_tmval -= 1;
|
||||
console.log("time..." + _tmval);
|
||||
if ($('.error #countdown').css("display") == "none") {
|
||||
$('.error #countdown').fadeIn(1000);
|
||||
}
|
||||
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": null
|
||||
});
|
||||
}
|
||||
|
||||
try {
|
||||
await HotelTV.hcap.GetDevInfo();
|
||||
//await HotelTV.hcap.ShowDevInfo();
|
||||
//
|
||||
let __netStatus = await HotelTV.hal.GetNetworkStatus();
|
||||
if ( __netStatus.info==null || __netStatus.error==true ){
|
||||
console.info("aa");
|
||||
__ifxn_showFatalErr_Network();
|
||||
return;
|
||||
} else {
|
||||
console.info("bb");
|
||||
if ( __netStatus.info.ip_address=="0.0.0.0" || __netStatus.info.gateway=="0.0.0.0" ) {
|
||||
console.info("Fatall.......");
|
||||
__ifxn_showFatalErr_Network();
|
||||
return;
|
||||
}
|
||||
}
|
||||
} catch ( _err ) {
|
||||
console.info("cc");
|
||||
__ifxn_showFatalErr_Network();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
try {
|
||||
await HotelTV.hal.GetDevInfo();
|
||||
//await HotelTV.hal.ShowDevInfo();
|
||||
} catch (_error) {
|
||||
let _tmval = 50;
|
||||
setTimeout(HotelTV.hal.Reboot, 49000);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.error.get-devinfo",
|
||||
"SYSTEM ERROR",
|
||||
@@ -230,9 +276,7 @@ HotelTV.Init = async function() {
|
||||
}
|
||||
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
}
|
||||
"cb_eoe": null
|
||||
});
|
||||
}
|
||||
|
||||
@@ -244,6 +288,7 @@ HotelTV.Init = async function() {
|
||||
HotelTV.state['registration'] = await HotelTV.api.CheckRegistration();
|
||||
} catch (_error) {
|
||||
let _tmval = 50;
|
||||
setTimeout(HotelTV.hal.Reboot, 49000);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.error.check-registration",
|
||||
"SYSTEM ERROR",
|
||||
@@ -257,9 +302,7 @@ HotelTV.Init = async function() {
|
||||
}
|
||||
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
}
|
||||
"cb_eoe": null
|
||||
});
|
||||
}
|
||||
|
||||
@@ -272,12 +315,13 @@ HotelTV.Init = async function() {
|
||||
// FULL LICENSE MODE
|
||||
try {
|
||||
HotelTV.settings = await HotelTV.api.GetSettings();
|
||||
let need_reboot = await HotelTV.hcap.SetDevice(HotelTV.settings);
|
||||
let need_reboot = await HotelTV.hal.SetDevice(HotelTV.settings);
|
||||
if (need_reboot == true) {
|
||||
console.log("System Need to Reboot");
|
||||
HotelTV.ui_utils.SetBusy(false);
|
||||
|
||||
let _tmval = 20;
|
||||
setTimeout(HotelTV.hal.Reboot, 20000);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.info.change-configuration",
|
||||
"SYSTEM INFO",
|
||||
@@ -291,14 +335,13 @@ HotelTV.Init = async function() {
|
||||
}
|
||||
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
}
|
||||
"cb_eoe": null
|
||||
});
|
||||
return;
|
||||
}
|
||||
} catch (_error) {
|
||||
let _tmval = 50;
|
||||
setTimeout(HotelTV.hal.Reboot, 49000);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.set-devinfo",
|
||||
"SYSTEM ERROR",
|
||||
@@ -312,9 +355,7 @@ HotelTV.Init = async function() {
|
||||
}
|
||||
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
}
|
||||
"cb_eoe": null
|
||||
});
|
||||
}
|
||||
|
||||
@@ -322,6 +363,7 @@ HotelTV.Init = async function() {
|
||||
HotelTV.hotelinfo = await HotelTV.api.GetHotelInfo();
|
||||
} catch (_error) {
|
||||
let _tmval = 50;
|
||||
setTimeout(HotelTV.hal.Reboot, 49000);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.error.get-hotelinfo",
|
||||
"SYSTEM ERROR",
|
||||
@@ -335,9 +377,7 @@ HotelTV.Init = async function() {
|
||||
}
|
||||
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
}
|
||||
"cb_eoe": null
|
||||
});
|
||||
}
|
||||
// state[theme_root] 정의
|
||||
@@ -351,6 +391,7 @@ HotelTV.Init = async function() {
|
||||
HotelTV.guestinfo = await HotelTV.api.GetGuestInfo();
|
||||
} catch (_error) {
|
||||
let _tmval = 50;
|
||||
setTimeout(HotelTV.hal.Reboot, 49000);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.error.get-guestinfo",
|
||||
"SYSTEM ERROR",
|
||||
@@ -364,9 +405,7 @@ HotelTV.Init = async function() {
|
||||
}
|
||||
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
}
|
||||
"cb_eoe": null
|
||||
});
|
||||
}
|
||||
|
||||
@@ -374,6 +413,7 @@ HotelTV.Init = async function() {
|
||||
HotelTV.opening = await HotelTV.api.GetOpeningCtz();
|
||||
} catch (_error) {
|
||||
let _tmval = 50;
|
||||
setTimeout(HotelTV.hal.Reboot, 49000);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.error.get-openingctzinfo",
|
||||
"SYSTEM ERROR",
|
||||
@@ -387,9 +427,7 @@ HotelTV.Init = async function() {
|
||||
}
|
||||
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
}
|
||||
"cb_eoe": null
|
||||
});
|
||||
}
|
||||
|
||||
@@ -409,6 +447,7 @@ HotelTV.Init = async function() {
|
||||
HotelTV.widget = await HotelTV.api.GetWidgetCtz();
|
||||
} catch (_error) {
|
||||
let _tmval = 50;
|
||||
setTimeout(HotelTV.hal.Reboot, 49000);
|
||||
//console.log("Display Error page for get widget info");
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.error.get-widget",
|
||||
@@ -423,9 +462,7 @@ HotelTV.Init = async function() {
|
||||
}
|
||||
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
}
|
||||
"cb_eoe": null
|
||||
});
|
||||
}
|
||||
|
||||
@@ -433,6 +470,7 @@ HotelTV.Init = async function() {
|
||||
HotelTV.tvguide = await HotelTV.api.GetProgramCtz();
|
||||
} catch (_error) {
|
||||
let _tmval = 50;
|
||||
setTimeout(HotelTV.hal.Reboot, 49000);
|
||||
//console.log("Display Error page for get tvguide info");
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.error.get-tvguideinfo",
|
||||
@@ -447,9 +485,7 @@ HotelTV.Init = async function() {
|
||||
}
|
||||
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
}
|
||||
"cb_eoe": null
|
||||
});
|
||||
}
|
||||
|
||||
@@ -516,6 +552,7 @@ HotelTV.Init = async function() {
|
||||
}
|
||||
} else {
|
||||
let _tmval = 60;
|
||||
setTimeout(HotelTV.hal.Reboot, 59000);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.error.unregistered-device",
|
||||
"SYSTEM ERROR",
|
||||
@@ -529,17 +566,14 @@ HotelTV.Init = async function() {
|
||||
$('.error #countdown').fadeIn(1000);
|
||||
}
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot`);
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
}
|
||||
"cb_eoe": null
|
||||
}
|
||||
);
|
||||
}
|
||||
console.log("Initialization:: Done");
|
||||
HotelTV.ui_utils.SetBusy(false);
|
||||
|
||||
SpatialNavigation.init();
|
||||
//SpatialNavigation.init();
|
||||
};
|
||||
|
||||
HotelTV.LoadWelCome = async function() {
|
||||
@@ -579,7 +613,7 @@ HotelTV.LoadWelCome = async function() {
|
||||
let _res = HotelTV.devinfo.display_resolution.split("x");
|
||||
HotelTV.ui_welcome.Init(_res[0], _res[1]);
|
||||
|
||||
//await HotelTV.hcap.ShowDevInfo();
|
||||
//await HotelTV.hal.ShowDevInfo();
|
||||
HotelTV.ui_welcome.Show();
|
||||
|
||||
|
||||
@@ -603,8 +637,8 @@ HotelTV.LoadWelCome = async function() {
|
||||
//console.log(`Recv Msg[${recvMsg.event}]::> ${recvMsg.ret} ::> ${recvMsg.data}`);
|
||||
//console.log(`Recv Msg[${recvMsg.event}]::> ${recvMsg.ret}`);
|
||||
if (recvMsg.event == "update_report") {
|
||||
HotelTV.hcap.GetUptime();
|
||||
HotelTV.hcap.GetDeviceUsage().then(_usage => {
|
||||
HotelTV.hal.GetUptime();
|
||||
HotelTV.hal.GetDeviceUsage().then(_usage => {
|
||||
//console.log(`USAGE::> CPU[${_usage.cpu}%]`);
|
||||
HotelTV.api.ReportBrief(HotelTV.devinfo, HotelTV.guestinfo, _usage);
|
||||
});
|
||||
@@ -761,7 +795,7 @@ HotelTV.LoadAppFull = async function() {
|
||||
//STEP#03: INIT HCAP for HotelTV FullAPP
|
||||
let tmrAppAuth = setInterval(async function() {
|
||||
let _foundNetflix = false;
|
||||
let _hcapAppInfo = await HotelTV.hcap.PreAppGetInfo(false);
|
||||
let _hcapAppInfo = await HotelTV.hal.PreAppGetInfo(false);
|
||||
HotelTV.state['hcap_app'] = _hcapAppInfo.applist;
|
||||
for (_i = 0; _i < HotelTV.state['hcap_app'].length; _i++) {
|
||||
if (HotelTV.state['hcap_app'][_i].title == "Netflix") {
|
||||
@@ -783,7 +817,7 @@ HotelTV.LoadAppFull = async function() {
|
||||
//siAppToken = _progam[_i].service;
|
||||
|
||||
if (siAppName && siAppToken) {
|
||||
HotelTV.hcap.siAppAuth(siAppName, siAppToken, false);
|
||||
HotelTV.hal.siAppAuth(siAppName, siAppToken, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -799,7 +833,7 @@ HotelTV.LoadAppFull = async function() {
|
||||
HotelTV.ui_appfull.Init(_res[0], _res[1]);
|
||||
|
||||
//STEP#06; Show UI
|
||||
//await HotelTV.hcap.ShowDevInfo();
|
||||
//await HotelTV.hal.ShowDevInfo();
|
||||
HotelTV.ui_appfull.Show();
|
||||
|
||||
//STEP#06 Register Service web worker
|
||||
@@ -840,8 +874,8 @@ HotelTV.LoadAppFull = async function() {
|
||||
HotelTV.widget = recvMsg.data;
|
||||
}
|
||||
} else if (recvMsg.event == "update_report") {
|
||||
HotelTV.hcap.GetUptime();
|
||||
HotelTV.hcap.GetDeviceUsage().then(_usage => {
|
||||
HotelTV.hal.GetUptime();
|
||||
HotelTV.hal.GetDeviceUsage().then(_usage => {
|
||||
//console.log(`USAGE::> CPU[${_usage.cpu}%]`);
|
||||
HotelTV.api.ReportBrief(HotelTV.devinfo, HotelTV.guestinfo, _usage);
|
||||
});
|
||||
@@ -899,7 +933,7 @@ HotelTV.LoadAppFull = async function() {
|
||||
|
||||
|
||||
//
|
||||
//HotelTV.hcap.Test();
|
||||
//HotelTV.hal.Test();
|
||||
}
|
||||
|
||||
HotelTV.UnloadAppFull = async function() {
|
||||
|
||||
@@ -313,12 +313,12 @@ HotelTV.ui_appfull = (function() {
|
||||
const _state = HotelTV.state;
|
||||
let _cur_date = new Date();
|
||||
let _valid_state_keyEvtOnTv = ["tvCtgShow", "tvCtgHide", "tvShortcut"];
|
||||
|
||||
|
||||
|
||||
if ( __uifxn_Utils_CheckKeyisNumber(_evt.keyCode)==true ){
|
||||
if ( _valid_state_keyEvtOnTv.includes(_state.menu.stage.cur)==true ){
|
||||
_tmrEvt.keyevt.tv_numBtn = _cur_date;
|
||||
}
|
||||
}
|
||||
} else if ( _evt.keyCode == gRmtKey.up || _evt.keyCode == gRmtKey.down ||
|
||||
_evt.keyCode == gRmtKey.left || _evt.keyCode == gRmtKey.right ||
|
||||
_evt.keyCode == gRmtKey.chup || _evt.keyCode == gRmtKey.chdown ) {
|
||||
@@ -349,11 +349,11 @@ HotelTV.ui_appfull = (function() {
|
||||
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeOut(500, function(){
|
||||
__uifxn_AppFull_TopWidjetShow(false);
|
||||
});
|
||||
HotelTV.hcap.VideoWinSize(null);
|
||||
HotelTV.hal.VideoWinSize(null);
|
||||
break;
|
||||
case 'play_end':
|
||||
_state.media.playing = false;
|
||||
HotelTV.hcap.MediaStop(
|
||||
HotelTV.hal.MediaStop(
|
||||
function() {
|
||||
$('.main .ctzgen .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeIn(500, function() {
|
||||
@@ -388,14 +388,14 @@ HotelTV.ui_appfull = (function() {
|
||||
_state.media.playing = true;
|
||||
$('.main .mypage .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||
$('.main .mypage .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item.active').addClass('movieplay');
|
||||
HotelTV.hcap.VideoWinSize(null);
|
||||
HotelTV.hal.VideoWinSize(null);
|
||||
$('.main .mypage .slider').animate({top:1080, left:0}, 1000, function(){
|
||||
__uifxn_AppFull_TopWidjetShow(false);
|
||||
})
|
||||
break;
|
||||
case 'play_end':
|
||||
_state.media.playing = false;
|
||||
HotelTV.hcap.MediaStop(
|
||||
HotelTV.hal.MediaStop(
|
||||
function() {
|
||||
$('.main .mypage .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||
$('.main .mypage .slider').animate({top:864, left:0}, 1000, function(){
|
||||
@@ -466,7 +466,7 @@ HotelTV.ui_appfull = (function() {
|
||||
let _typeAppFocusEvt = _evt.eventType;
|
||||
|
||||
if (_typeAppFocusEvt == "focused") {
|
||||
// HotelTV.hcap.SetSoftAp({
|
||||
// HotelTV.hal.SetSoftAp({
|
||||
// "enable": false,
|
||||
// });
|
||||
}else if (_typeAppFocusEvt == "unfocused") {
|
||||
@@ -504,7 +504,7 @@ HotelTV.ui_appfull = (function() {
|
||||
_state.external_input.last_input.index = Number(_evt.index)-1;
|
||||
setTimeout(function(){
|
||||
$('body,html').fadeOut(500, function(){
|
||||
let __retSuccess = HotelTV.hcap.SetExternalInput("HDMI", Number(_evt.index)-1);
|
||||
let __retSuccess = HotelTV.hal.SetExternalInput("HDMI", Number(_evt.index)-1);
|
||||
if ( __retSuccess==false ){
|
||||
_state.external_input.connected = false;
|
||||
_state.external_input.last_input.index = 0;
|
||||
@@ -577,7 +577,7 @@ HotelTV.ui_appfull = (function() {
|
||||
}
|
||||
});
|
||||
} else if ( _state.menu.stage.cur=="external_av_hdmi" ) {
|
||||
let __retSuccess = HotelTV.hcap.SetExternalInput("HDMI", _state.external_input.last_input.index);
|
||||
let __retSuccess = HotelTV.hal.SetExternalInput("HDMI", _state.external_input.last_input.index);
|
||||
if ( __retSuccess==false ){
|
||||
_state.external_input.connected = false;
|
||||
_state.external_input.last_input.index = 0;
|
||||
@@ -2084,7 +2084,6 @@ HotelTV.ui_appfull = (function() {
|
||||
_elMainRoot.fadeOut(500, function() {
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(false);
|
||||
__uifxn_AppFull_TopWidjetShow(false);
|
||||
_elMainRoot.removeClass("depth_mm");
|
||||
_elAmPupRoot.children('.slider').fadeIn(300, function() {
|
||||
_elAmPupRoot.children('.bg').fadeIn(500, function() {
|
||||
_elAmCtgySel.find('.owl-item').addClass('unfocus');
|
||||
@@ -2146,7 +2145,6 @@ HotelTV.ui_appfull = (function() {
|
||||
setTimeout(function() {
|
||||
$('.main').fadeIn(1000, () => {
|
||||
_state.menu.stage.cur = "main";
|
||||
$('.main').addClass("depth_mm");
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||
__uifxn_AppFull_TopWidjetShow(true);
|
||||
_state.menu.stage.prev = null;
|
||||
@@ -2197,7 +2195,6 @@ HotelTV.ui_appfull = (function() {
|
||||
setTimeout(function() {
|
||||
$('.main').fadeIn(1000, () => {
|
||||
_state.menu.stage.cur = "main";
|
||||
$('.main').addClass("depth_mm");
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||
__uifxn_AppFull_TopWidjetShow(true);
|
||||
_state.menu.stage.prev = null;
|
||||
@@ -3627,7 +3624,6 @@ HotelTV.ui_appfull = (function() {
|
||||
_elMainRoot.fadeOut(500, function() {
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(false);
|
||||
__uifxn_AppFull_TopWidjetShow(false);
|
||||
_elMainRoot.removeClass("depth_mm");
|
||||
_elRsPupRoot.children('.slider').fadeIn(300, function() {
|
||||
_elRsPupRoot.children('.bg').fadeIn(500, function() {
|
||||
_elRsCtgySel.find('.owl-item').addClass('unfocus');
|
||||
@@ -3689,7 +3685,6 @@ HotelTV.ui_appfull = (function() {
|
||||
setTimeout(function() {
|
||||
$('.main').fadeIn(1000, () => {
|
||||
_state.menu.stage.cur = "main";
|
||||
$('.main').addClass("depth_mm");
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||
__uifxn_AppFull_TopWidjetShow(true);
|
||||
_state.menu.stage.prev = null;
|
||||
@@ -3739,7 +3734,6 @@ HotelTV.ui_appfull = (function() {
|
||||
setTimeout(function() {
|
||||
$('.main').fadeIn(1000, () => {
|
||||
_state.menu.stage.cur = "main";
|
||||
$('.main').addClass("depth_mm");
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||
__uifxn_AppFull_TopWidjetShow(true);
|
||||
_state.menu.stage.prev = null;
|
||||
@@ -3972,8 +3966,8 @@ HotelTV.ui_appfull = (function() {
|
||||
|
||||
/**
|
||||
* Return tv cagegory id by name
|
||||
* @param {string} _ctgy_name
|
||||
* @returns
|
||||
* @param {string} _ctgy_name
|
||||
* @returns
|
||||
*/
|
||||
function __uifxn_AppFull_TVCtgyIdByName(_ctgy_name="all") {
|
||||
let _program = HotelTV.tvguide.program;
|
||||
@@ -4054,11 +4048,11 @@ HotelTV.ui_appfull = (function() {
|
||||
_epgProgInf_Prev = _epg_prom_info[_j-1];
|
||||
_schTmPrev.setHours(Number(_epgProgInf_Prev.time.charAt(0) + _epgProgInf_Prev.time.charAt(1)));
|
||||
_schTmPrev.setMinutes(Number(_epgProgInf_Prev.time.charAt(3) + _epgProgInf_Prev.time.charAt(4)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
let _t_playTotal = Math.round((_schTmCur - _schTmPrev) / 60000); //Total play time in minuate
|
||||
let _t_playRemain = Math.round((_schTmCur - _tm_cur) / 60000); //Remain play time in minuate
|
||||
|
||||
|
||||
_rtn_epg = _epgProgInf_Cur;
|
||||
if (_t_playRemain >= 0) {
|
||||
//console.log("CHNAME::>" + _ch_name + " Remaining::> " + _t_playRemain);
|
||||
@@ -4117,7 +4111,7 @@ HotelTV.ui_appfull = (function() {
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( _tm_diff_ms_tvctrl>=5000 )
|
||||
if ( _tm_diff_ms_tvctrl>=5000 )
|
||||
{
|
||||
if ( _state.menu.stage.cur=="tvCtgShow" || _state.menu.stage.cur=="tvCtgHide" )
|
||||
{
|
||||
@@ -4141,7 +4135,7 @@ HotelTV.ui_appfull = (function() {
|
||||
___ifxn_hideTvEpgFrm();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4179,7 +4173,7 @@ HotelTV.ui_appfull = (function() {
|
||||
|
||||
___ifxn_fadeout_shortcutFrm();
|
||||
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
if ( _state.tv.shortkey.ch_item_idx!=null ) {
|
||||
const _mmIdx_tv = _state.menu.main.cur;
|
||||
let _tvCtgAllIdx = _state.menu.main[_mmIdx].cur = __uifxn_AppFull_TVCtgyIdByName("all");
|
||||
@@ -4665,7 +4659,7 @@ HotelTV.ui_appfull = (function() {
|
||||
if (uri_video != null) {
|
||||
_state.menu.stage.prev = _state.menu.stage.cur;
|
||||
_state.menu.stage.cur = "mypage_replay_welcome_vod";
|
||||
HotelTV.hcap.MediaPlay(
|
||||
HotelTV.hal.MediaPlay(
|
||||
uri_video,
|
||||
"",
|
||||
"video/mp4",
|
||||
@@ -4688,7 +4682,7 @@ HotelTV.ui_appfull = (function() {
|
||||
{
|
||||
if (_state.media.playing == true) {
|
||||
_state.media.playing = false;
|
||||
HotelTV.hcap.MediaStop(
|
||||
HotelTV.hal.MediaStop(
|
||||
function() {
|
||||
$('.main .mypage .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||
$('.main .mypage .slider').animate({top:864, left:0}, 1000, function(){
|
||||
@@ -4792,8 +4786,8 @@ HotelTV.ui_appfull = (function() {
|
||||
|
||||
/**
|
||||
* HotelTV UI[AppFull] Wrapper Function::> request tv channel function
|
||||
* @param {Number} _force_ctg_item_idx
|
||||
* @param {Number} _force_ch_item_idx
|
||||
* @param {Number} _force_ctg_item_idx
|
||||
* @param {Number} _force_ch_item_idx
|
||||
* @param {function} _cbfxn_success
|
||||
* @param {function} _cbfxn_failure
|
||||
*/
|
||||
@@ -4857,7 +4851,7 @@ HotelTV.ui_appfull = (function() {
|
||||
} else if (_tvChInfo.type == "encoder") {
|
||||
// ENCODER
|
||||
}
|
||||
HotelTV.hcap.ChannelSetup(_tvChInfo.type, _chReqParam);
|
||||
HotelTV.hal.ChannelSetup(_tvChInfo.type, _chReqParam);
|
||||
|
||||
//TODO: 아래 실제 채널 셋업 부분 주석처리 되어 있는데, IP와 RF모두 처리 할 수 있도록 구현할것
|
||||
//let _uri_stream = _tvChInfo.url.split('://@')[1];
|
||||
@@ -4865,7 +4859,7 @@ HotelTV.ui_appfull = (function() {
|
||||
//let _uri_ip = _uri_stream.split(':')[0];
|
||||
//let _uri_port = _uri_stream.split(':')[1];
|
||||
//console.log(`ip = ${_uri_ip} port=${_uri_port} protocol=${_typ_proto}`);
|
||||
//HotelTV.hcap.ChannelSetup("ip", { "ip": _uri_ip, "port": Number(_uri_port), "ptype": _typ_proto });
|
||||
//HotelTV.hal.ChannelSetup("ip", { "ip": _uri_ip, "port": Number(_uri_port), "ptype": _typ_proto });
|
||||
|
||||
|
||||
// {
|
||||
@@ -4873,7 +4867,7 @@ HotelTV.ui_appfull = (function() {
|
||||
// let max = Math.floor(16);
|
||||
// let _major = Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
// console.log("Major=5 minor=" + _major);
|
||||
// HotelTV.hcap.ChannelSetup("rf_analog_ntsc", { "major": _major, "minor": 0 });
|
||||
// HotelTV.hal.ChannelSetup("rf_analog_ntsc", { "major": _major, "minor": 0 });
|
||||
// }
|
||||
|
||||
HotelTV.api.ReportEvent([{
|
||||
@@ -4937,12 +4931,13 @@ HotelTV.ui_appfull = (function() {
|
||||
{
|
||||
let _ChItem = _tvCtgyAllChannels[_idx];
|
||||
// _chNumber는 -기준으로 잘라낸 앞숫자, 예를들면 16-1이라면 _chNumber는 16이 됨.
|
||||
let _ChNumber = __ifxn_getChItemValue(_ChItem, "number").toString().split('-');
|
||||
|
||||
// Find out matched channel
|
||||
if ( Number(_ChNumber)==Number(_strReqNumNext) ){
|
||||
let _ChNumStr = __ifxn_getChItemValue(_ChItem, "number").toString();
|
||||
let _ChNumber = Number(_ChNumStr.split('-')[0]);
|
||||
|
||||
// Find out matched channel
|
||||
if ( _ChNumber==Number(_strReqNumNext) ){
|
||||
// Find out
|
||||
_state.tv.shortkey.ch_item_idx = Number(__ifxn_getChItemIdxByNumber(_strReqNumNext));
|
||||
_state.tv.shortkey.ch_item_idx = Number(__ifxn_getChItemIdxByNumber(_ChNumStr));
|
||||
console.log("Find out matched channel index(of ALL category)::> " + _state.tv.shortkey.ch_item_idx);
|
||||
break;
|
||||
}
|
||||
@@ -5160,7 +5155,7 @@ HotelTV.ui_appfull = (function() {
|
||||
let _egp_prog_inf = null;
|
||||
|
||||
|
||||
//Update channel logo image
|
||||
//Update channel logo image
|
||||
_elDivTvChLogo.css({ "background-image": "url(" + _tvChInfo.logo.file.download + ")" });
|
||||
|
||||
//Update channel number
|
||||
@@ -5173,18 +5168,25 @@ HotelTV.ui_appfull = (function() {
|
||||
if (_egp_prog_inf.epg_info != null) {
|
||||
_elDivTvChEpgTitle.text(_egp_prog_inf.epg_info.name);
|
||||
_elDivTvChEpgDetails.find('#tm_playing').text(_trTbl.ui.tv.epg.progamtime[_state.lang] + _egp_prog_inf.epg_info.playing_time);
|
||||
|
||||
|
||||
//let _new_progress_bar_width = parseInt(_elDivTvChEpgDetails.find("#tm_chart").width()*_egp_prog_inf.epg_info.progress_pcent/100);
|
||||
let _new_progress_bar_width = parseInt(835*_egp_prog_inf.epg_info.progress_pcent/100);
|
||||
_elDivTvChEpgDetails.find('.progress').width(_new_progress_bar_width);
|
||||
} else {
|
||||
_elDivTvChEpgTitle.text("");
|
||||
_elDivTvChEpgDetails.find('#tm_playing').text("");
|
||||
|
||||
//let _new_progress_bar_width = parseInt(_elDivTvChEpgDetails.find("#tm_chart").width()*_egp_prog_inf.epg_info.progress_pcent/100);
|
||||
let _new_progress_bar_width = 0;
|
||||
_elDivTvChEpgDetails.find('.progress').width(_new_progress_bar_width);
|
||||
}
|
||||
|
||||
// Fade in epg
|
||||
__uifxn_AppFull_TVEpgFadeIn();
|
||||
// Fade in epg
|
||||
__uifxn_AppFull_TVEpgFadeIn();
|
||||
|
||||
if (_action == "on_load") {
|
||||
//_state.menu.stage.cur = "tvCtgShow";
|
||||
// TODO: Request Channel
|
||||
// TODO: Request Channel
|
||||
} else if (_action == "ch_up") {
|
||||
// TODO: Request Channel
|
||||
} else if (_action == "ch_down") {
|
||||
@@ -5674,7 +5676,7 @@ HotelTV.ui_appfull = (function() {
|
||||
$('.main').animate({ top: -1080, left: 0 }, 1000, () => {
|
||||
$('.main .ctzgen').hide();
|
||||
_state.media.playing = false;
|
||||
HotelTV.hcap.MediaStop(null, null);
|
||||
HotelTV.hal.MediaStop(null, null);
|
||||
|
||||
$('#lst_ctzgenbg').off('refresh.owl.carousel');
|
||||
$('#lst_ctzgenbg').off('change.owl.carousel');
|
||||
@@ -5693,7 +5695,7 @@ HotelTV.ui_appfull = (function() {
|
||||
if ($('.main .ctzgen .bg .owl-carousel .owl-item.active .ctz_mv_ctrl').length == 1) {
|
||||
let uri_video = $($('.main .ctzgen .bg .owl-carousel .owl-item.active .ctz_mv_ctrl')[0]).attr('video_url');
|
||||
if (uri_video != null) {
|
||||
HotelTV.hcap.MediaPlay(
|
||||
HotelTV.hal.MediaPlay(
|
||||
uri_video,
|
||||
"",
|
||||
"video/mp4",
|
||||
@@ -5710,7 +5712,7 @@ HotelTV.ui_appfull = (function() {
|
||||
} else if (event.keyCode == gRmtKey.stop) {
|
||||
if (_state.media.playing == true) {
|
||||
_state.media.playing = false;
|
||||
HotelTV.hcap.MediaStop(
|
||||
HotelTV.hal.MediaStop(
|
||||
function() {
|
||||
$('.main .ctzgen .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeIn(1000);
|
||||
@@ -5780,7 +5782,7 @@ HotelTV.ui_appfull = (function() {
|
||||
|
||||
const __ifxn_exitTvMenu = function() {
|
||||
// 현재 재생중인 TV채널 종료
|
||||
HotelTV.hcap.ChannelShutDown();
|
||||
HotelTV.hal.ChannelShutDown();
|
||||
|
||||
if (_hndl_tmrTvChnMngr != null) {
|
||||
clearInterval(_hndl_tmrTvChnMngr);
|
||||
@@ -5973,7 +5975,7 @@ HotelTV.ui_appfull = (function() {
|
||||
__ifxn_exitTvMenu();
|
||||
} else if ( __uifxn_Utils_CheckKeyisNumber(event.keyCode)==true ){
|
||||
//Navigate TV shortcut lists
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
_state.menu.stage.cur = "tvShortcut";
|
||||
__uifxn_AppFull_TVDrawShortcutKey_Mode0(event.keyCode);
|
||||
} else if ( _programTv.shortcutkeyMode=="mode_1" ) {
|
||||
@@ -5999,10 +6001,10 @@ HotelTV.ui_appfull = (function() {
|
||||
__ifxn_exitTvMenu();
|
||||
} else if ( __uifxn_Utils_CheckKeyisNumber(event.keyCode)==true ) {
|
||||
//Navigate TV shortcut lists
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
_state.menu.stage.cur = "tvShortcut";
|
||||
__uifxn_AppFull_TVDrawShortcutKey_Mode0(event.keyCode);
|
||||
} else if ( _programTv.shortcutkeyMode=="mode_1" ) {
|
||||
} else if ( _programTv.shortcutkeyMode=="mode_1" ) {
|
||||
if ( __uifxn_AppFull_TVDrawShortcutKey_Mode1(true, "build", event.keyCode)==0 ){
|
||||
_state.menu.stage.prev = _state.menu.stage.cur;
|
||||
_state.menu.stage.cur = "tvShortcut";
|
||||
@@ -6015,18 +6017,18 @@ HotelTV.ui_appfull = (function() {
|
||||
// console.log("TV shortcut routine: key:" + event.keyCode);
|
||||
if (event.keyCode == gRmtKey.back) {
|
||||
// TV메뉴로 복귀
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
//
|
||||
} else if ( _programTv.shortcutkeyMode=="mode_1" ) {
|
||||
} else if ( _programTv.shortcutkeyMode=="mode_1" ) {
|
||||
__uifxn_AppFull_TVDrawShortcutKey_Mode1(false, "exitWithoutChchange", event.keyCode);
|
||||
}
|
||||
_state.menu.stage.cur = _state.menu.stage.prev;
|
||||
_state.menu.stage.prev = null;
|
||||
} else if (event.keyCode == gRmtKey.enter) {
|
||||
// 번호키를 이용한 채널 선택 팝업 삭제
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
//
|
||||
} else if ( _programTv.shortcutkeyMode=="mode_1" ) {
|
||||
} else if ( _programTv.shortcutkeyMode=="mode_1" ) {
|
||||
__uifxn_AppFull_TVDrawShortcutKey_Mode1(false, "exitWithChchange", event.keyCode);
|
||||
}
|
||||
_state.menu.stage.cur = _state.menu.stage.prev;
|
||||
@@ -6035,13 +6037,13 @@ HotelTV.ui_appfull = (function() {
|
||||
_tmrEvt.keyevt.tv_ctrl = new Date();
|
||||
_tmrEvt.keyevt.tv_ctrl.setSeconds(_tmrEvt.keyevt.tv_ctrl.getSeconds() - 3);
|
||||
} else if ( __uifxn_Utils_CheckKeyisNumber(event.keyCode)==true ) {
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
__uifxn_AppFull_TVDrawShortcutKey_Mode0(event.keyCode);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
if ( _programTv.shortcutkeyMode=="mode_0" ) {
|
||||
//
|
||||
} else if ( _programTv.shortcutkeyMode=="mode_1" ) {
|
||||
} else if ( _programTv.shortcutkeyMode=="mode_1" ) {
|
||||
__uifxn_AppFull_TVDrawShortcutKey_Mode1(true, "move", event.keyCode);
|
||||
}
|
||||
console.log("TVSHORTCUT CHNUM: " + _state.tv.shortkey.ch_item_idx);
|
||||
@@ -6124,7 +6126,7 @@ HotelTV.ui_appfull = (function() {
|
||||
}
|
||||
}
|
||||
|
||||
// Title
|
||||
// Title
|
||||
_elLangSelTitleDiv.text(_trTbl.system.szsellanguage[_state.lang]);
|
||||
|
||||
// Usages
|
||||
@@ -6149,6 +6151,19 @@ HotelTV.ui_appfull = (function() {
|
||||
let _elLangSelUsageDiv = _elLangSelCtrlDiv.children('.usage');
|
||||
let _elLangSelButtonsDiv = _elLangSelCtrlDiv.children('.buttons');
|
||||
|
||||
const ___ifxn_updateLangSelTitleAndUsages = function() {
|
||||
let __focusedLang = "en-US";
|
||||
if ( _elLangSelButtonsDiv.find('.focus').length ) {
|
||||
__focusedLang = _elLangSelButtonsDiv.find('.focus').attr('id');
|
||||
}
|
||||
|
||||
// Title
|
||||
_elLangSelTitleDiv.text(_trTbl.system.szsellanguage[__focusedLang]);
|
||||
|
||||
// Usages
|
||||
_elLangSelUsageDiv.html(_trTbl.system.lang_sel_usage[__focusedLang]);
|
||||
}
|
||||
|
||||
|
||||
const ___ifxn_moveLangButton = function(_direction) {
|
||||
let selectedBtnItemCur = _elLangSelButtonsDiv.find('.focus');
|
||||
@@ -6171,13 +6186,15 @@ HotelTV.ui_appfull = (function() {
|
||||
_elLangSelButtonsDiv.find('.langBtn').last().addClass("focus");
|
||||
}
|
||||
}
|
||||
|
||||
___ifxn_updateLangSelTitleAndUsages();
|
||||
}
|
||||
|
||||
const __ifxn_sendNextLangUsrData = async function(_nextLang, __cbFxnFailure=null, __cbFxn_Success=null) {
|
||||
try {
|
||||
let found_dev_locale = false;
|
||||
// SET PLATFORM LANGUAGE
|
||||
// HotelTV.hcap.SetPlatformLanguage(_state.lang);
|
||||
// HotelTV.hal.SetPlatformLanguage(_state.lang);
|
||||
if ( 'getLocaleList' in HotelTV.devinfo )
|
||||
{
|
||||
for( let _localeIdx in HotelTV.devinfo.getLocaleList )
|
||||
@@ -6189,10 +6206,10 @@ HotelTV.ui_appfull = (function() {
|
||||
}
|
||||
}
|
||||
if ( found_dev_locale==true ){
|
||||
HotelTV.hcap.SetDeviceLocale(_nextLang);
|
||||
HotelTV.hal.SetDeviceLocale(_nextLang);
|
||||
}else{
|
||||
console.log("Set Default device locale set to en-US");
|
||||
HotelTV.hcap.SetDeviceLocale('en-US');
|
||||
HotelTV.hal.SetDeviceLocale('en-US');
|
||||
}
|
||||
|
||||
let _usrDataJson = {
|
||||
@@ -6206,7 +6223,7 @@ HotelTV.ui_appfull = (function() {
|
||||
_elLangSelDiv.fadeOut(1000, function() {
|
||||
if ( __cbFxnFailure ){ __cbFxnFailure(); }
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6345,7 +6362,7 @@ HotelTV.ui_appfull = (function() {
|
||||
} else {
|
||||
if ( _state.menu.stage.cur=="tvCtgShow" || _state.menu.stage.cur=="tvCtgHide" )
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -7004,7 +7021,7 @@ HotelTV.ui_appfull = (function() {
|
||||
// 현재 재생중인 TV채널 종료
|
||||
if ( _state.tv.playing == true ){
|
||||
console.warn("Try to channel shutdown..");
|
||||
HotelTV.hcap.ChannelShutDown();
|
||||
HotelTV.hal.ChannelShutDown();
|
||||
_state.tv.playing = false;
|
||||
}
|
||||
|
||||
@@ -7039,12 +7056,12 @@ HotelTV.ui_appfull = (function() {
|
||||
console.log("Preparing TV APP::>" + _program[Number(_state.menu.main.cur)].service);
|
||||
if (_program[Number(_state.menu.main.cur)].service == "youtube") {
|
||||
// console.log(`Type:${_program[Number(_state.menu.main.cur)].type} preparing WIFI AP...`);
|
||||
// HotelTV.hcap.SetSoftAp({
|
||||
// HotelTV.hal.SetSoftAp({
|
||||
// "enable": true,
|
||||
// "ssid": "TVWIFI-" + HotelTV.guestinfo.room,
|
||||
// "password": "12345678",
|
||||
// });
|
||||
HotelTV.hcap.LaunchPreApp(_program[Number(_state.menu.main.cur)].service, null);
|
||||
HotelTV.hal.LaunchPreApp(_program[Number(_state.menu.main.cur)].service, null);
|
||||
} else if (_program[Number(_state.menu.main.cur)].service == "netflix") {
|
||||
let _foundNetflix = false;
|
||||
for (_i = 0; _i < _state['hcap_app'].length; _i++) {
|
||||
@@ -7054,12 +7071,12 @@ HotelTV.ui_appfull = (function() {
|
||||
}
|
||||
|
||||
if (_foundNetflix == true) {
|
||||
HotelTV.hcap.LaunchPreApp(_program[Number(_state.menu.main.cur)].service, { "hotel_name": HotelTV.hotelinfo.name });
|
||||
HotelTV.hal.LaunchPreApp(_program[Number(_state.menu.main.cur)].service, { "hotel_name": HotelTV.hotelinfo.name });
|
||||
} else {
|
||||
HotelTV.ui_utils.ShowNotificationMsgBalloon(_trTbl.system.ott_service_not_ready[_state.lang], 5);
|
||||
}
|
||||
} else if (_program[Number(_state.menu.main.cur)].service == "screenmirroring") {
|
||||
HotelTV.hcap.LaunchPreApp(_program[Number(_state.menu.main.cur)].service, null);
|
||||
HotelTV.hal.LaunchPreApp(_program[Number(_state.menu.main.cur)].service, null);
|
||||
}
|
||||
} else if (_program[Number(_state.menu.main.cur)].type.toLowerCase() == "language") {
|
||||
console.log("Preparing language select sub menu...");
|
||||
@@ -7530,6 +7547,7 @@ HotelTV.ui_appfull = (function() {
|
||||
let _state = HotelTV.state;
|
||||
let _trTbl = HotelTV.translation;
|
||||
|
||||
setTimeout(HotelTV.hal.Reboot, 12000);
|
||||
HotelTV.ui_utils.ShowSysNoticeMsg(true,
|
||||
"notice",
|
||||
"SYSTEM NOTICE",
|
||||
@@ -7544,7 +7562,6 @@ HotelTV.ui_appfull = (function() {
|
||||
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
@@ -7553,6 +7570,7 @@ HotelTV.ui_appfull = (function() {
|
||||
let _state = HotelTV.state;
|
||||
let _trTbl = HotelTV.translation;
|
||||
|
||||
setTimeout(HotelTV.hal.Reboot, 12000);
|
||||
HotelTV.ui_utils.ShowSysNoticeMsg(true,
|
||||
"notice",
|
||||
"SYSTEM NOTICE",
|
||||
@@ -7567,7 +7585,6 @@ HotelTV.ui_appfull = (function() {
|
||||
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
@@ -7576,6 +7593,8 @@ HotelTV.ui_appfull = (function() {
|
||||
let _state = HotelTV.state;
|
||||
let _trTbl = HotelTV.translation;
|
||||
|
||||
setTimeout(HotelTV.hal.Reboot, 32000);
|
||||
|
||||
HotelTV.ui_utils.ShowSysNoticeMsg(true,
|
||||
"notice",
|
||||
"SYSTEM NOTICE",
|
||||
@@ -7590,8 +7609,6 @@ HotelTV.ui_appfull = (function() {
|
||||
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
//setTimeout(HotelTV.hcap.PwrOff, 500);
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
@@ -7601,7 +7618,7 @@ HotelTV.ui_appfull = (function() {
|
||||
let _tmval = 30;
|
||||
let _state = HotelTV.state;
|
||||
let _trTbl = HotelTV.translation;
|
||||
|
||||
setTimeout(HotelTV.hal.Reboot, 32000);
|
||||
HotelTV.ui_utils.ShowSysNoticeMsg(true,
|
||||
"notice",
|
||||
"SYSTEM NOTICE",
|
||||
@@ -7616,7 +7633,6 @@ HotelTV.ui_appfull = (function() {
|
||||
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
|
||||
@@ -66,7 +66,7 @@ HotelTV.ui_welcome = (function() {
|
||||
switch (_stateMedia) {
|
||||
case 'play_start':
|
||||
_media_status = 'playing';
|
||||
HotelTV.hcap.VideoWinSize(null);
|
||||
HotelTV.hal.VideoWinSize(null);
|
||||
|
||||
//Hide welcome page
|
||||
__uifxn_WC_Show(null, function() {
|
||||
@@ -86,7 +86,7 @@ HotelTV.ui_welcome = (function() {
|
||||
break;
|
||||
case 'play_end':
|
||||
_media_status = 'stopped';
|
||||
HotelTV.hcap.MediaShutdown(
|
||||
HotelTV.hal.MediaShutdown(
|
||||
function() {
|
||||
$(".control .skip_video").hide();
|
||||
console.log("Media Desory::Done");
|
||||
@@ -99,7 +99,7 @@ HotelTV.ui_welcome = (function() {
|
||||
});
|
||||
break;
|
||||
case 'play_end_need_destory':
|
||||
HotelTV.hcap.MediaShutdown(
|
||||
HotelTV.hal.MediaShutdown(
|
||||
function() {
|
||||
$(".control .skip_video").hide();
|
||||
console.log("Media Desory::Done");
|
||||
@@ -126,7 +126,7 @@ HotelTV.ui_welcome = (function() {
|
||||
|
||||
case 'play_stop_requtested':
|
||||
_media_status = 'stopped';
|
||||
HotelTV.hcap.MediaShutdown(
|
||||
HotelTV.hal.MediaShutdown(
|
||||
function() {
|
||||
$(".control .skip_video").hide();
|
||||
console.log("Media Desory::Done");
|
||||
@@ -332,7 +332,7 @@ HotelTV.ui_welcome = (function() {
|
||||
|
||||
let found_dev_locale = false;
|
||||
// SET PLATFORM LANGUAGE
|
||||
// HotelTV.hcap.SetPlatformLanguage(_state.lang);
|
||||
// HotelTV.hal.SetPlatformLanguage(_state.lang);
|
||||
if ( 'getLocaleList' in HotelTV.devinfo )
|
||||
{
|
||||
for( let _localeIdx in HotelTV.devinfo.getLocaleList )
|
||||
@@ -344,10 +344,10 @@ HotelTV.ui_welcome = (function() {
|
||||
}
|
||||
}
|
||||
if ( found_dev_locale==true ){
|
||||
HotelTV.hcap.SetDeviceLocale(_state.lang);
|
||||
HotelTV.hal.SetDeviceLocale(_state.lang);
|
||||
}else{
|
||||
console.log("Set Default device locale set to en-US");
|
||||
HotelTV.hcap.SetDeviceLocale('en-US');
|
||||
HotelTV.hal.SetDeviceLocale('en-US');
|
||||
}
|
||||
|
||||
|
||||
@@ -358,7 +358,7 @@ HotelTV.ui_welcome = (function() {
|
||||
} else if (_ctzWc.intro == 'video') {
|
||||
HotelTV.ui_utils.SetBusy(true);
|
||||
/** Play movie clip */
|
||||
HotelTV.hcap.MediaPlay(
|
||||
HotelTV.hal.MediaPlay(
|
||||
_ctzWc.videos[_state.lang].download,
|
||||
null,
|
||||
"video/mp4",
|
||||
@@ -478,7 +478,7 @@ HotelTV.ui_welcome = (function() {
|
||||
let _tmval = 10;
|
||||
let _state = HotelTV.state;
|
||||
let _trTbl = HotelTV.translation;
|
||||
|
||||
setTimeout(HotelTV.hal.Reboot, 12000);
|
||||
HotelTV.ui_utils.ShowSysNoticeMsg(true,
|
||||
"notice",
|
||||
"SYSTEM NOTICE",
|
||||
@@ -493,7 +493,6 @@ HotelTV.ui_welcome = (function() {
|
||||
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
@@ -501,7 +500,7 @@ HotelTV.ui_welcome = (function() {
|
||||
let _tmval = 10;
|
||||
let _state = HotelTV.state;
|
||||
let _trTbl = HotelTV.translation;
|
||||
|
||||
setTimeout(HotelTV.hal.Reboot, 12000);
|
||||
HotelTV.ui_utils.ShowSysNoticeMsg(true,
|
||||
"notice",
|
||||
"SYSTEM NOTICE",
|
||||
@@ -516,7 +515,6 @@ HotelTV.ui_welcome = (function() {
|
||||
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
@@ -524,7 +522,7 @@ HotelTV.ui_welcome = (function() {
|
||||
let _tmval = 30;
|
||||
let _state = HotelTV.state;
|
||||
let _trTbl = HotelTV.translation;
|
||||
|
||||
setTimeout(HotelTV.hal.Reboot, 32000);
|
||||
HotelTV.ui_utils.ShowSysNoticeMsg(true,
|
||||
"notice",
|
||||
"SYSTEM NOTICE",
|
||||
@@ -539,8 +537,6 @@ HotelTV.ui_welcome = (function() {
|
||||
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
//setTimeout(HotelTV.hcap.PwrOff, 500);
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
@@ -550,7 +546,7 @@ HotelTV.ui_welcome = (function() {
|
||||
let _tmval = 30;
|
||||
let _state = HotelTV.state;
|
||||
let _trTbl = HotelTV.translation;
|
||||
|
||||
setTimeout(HotelTV.hal.Reboot, 32000);
|
||||
HotelTV.ui_utils.ShowSysNoticeMsg(true,
|
||||
"notice",
|
||||
"SYSTEM NOTICE",
|
||||
@@ -565,7 +561,6 @@ HotelTV.ui_welcome = (function() {
|
||||
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
|
||||
@@ -5,9 +5,7 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0px;
|
||||
/* background-image: url(./images/hoteltv_service_preparing.png); */
|
||||
background-image: url(/procentric/application/images/hoteltv_service_preparing_joson.jpg);
|
||||
/* background-image: url(/procentric/application/images/hoteltv_service_preparing.png); */
|
||||
background-image: url(../images/hoteltv_service_preparing_joson.jpg);
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="/procentric/application/css/owlcarousel/owl.carousel.min.css">
|
||||
<link rel="stylesheet" href="/procentric/application/css/owlcarousel/owl.theme.default.min.css">
|
||||
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.ui_utils.css">
|
||||
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.error.css">
|
||||
<link rel="stylesheet" href="./css/owlcarousel/owl.carousel.min.css">
|
||||
<link rel="stylesheet" href="./css/owlcarousel/owl.theme.default.min.css">
|
||||
<link rel="stylesheet" href="./theme/hoteltv.ui_utils.css">
|
||||
<link rel="stylesheet" href="./theme/hoteltv.error.css">
|
||||
<title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title>
|
||||
</head>
|
||||
|
||||
@@ -67,25 +67,25 @@
|
||||
|
||||
|
||||
<!-- Standard & 3rd party Library -->
|
||||
<script src="/procentric/application/lib/jquery-3.6.0.min.js"></script>
|
||||
<script src="/procentric/application/lib/jquery.color-2.1.2.min.js"></script>
|
||||
<script src="/procentric/application/lib/xml2json.js"></script>
|
||||
<script src="/procentric/application/lib/spatial_navigation.js"></script>
|
||||
<script src="/procentric/application/lib/owl.carousel.js"></script>
|
||||
<script src="./lib/jquery-3.6.0.min.js"></script>
|
||||
<script src="./lib/jquery.color-2.1.2.min.js"></script>
|
||||
<script src="./lib/xml2json.js"></script>
|
||||
<script src="./lib/spatial_navigation.js"></script>
|
||||
<script src="./lib/owl.carousel.js"></script>
|
||||
|
||||
<!-- LG HCAP Library -->
|
||||
<script src="/procentric/application/lib/hcap.js"></script>
|
||||
<script src="/procentric/application/lib/idcap.js"></script>
|
||||
<script src="./lib/hcap.js"></script>
|
||||
<script src="./lib/idcap.js"></script>
|
||||
|
||||
<!-- CENTIRM HOTELTV Library -->
|
||||
<script src="/procentric/application/lib/hoteltv.js"></script>
|
||||
<script src="/procentric/application/lib/hoteltv.ui_utils.js"></script>
|
||||
<script src="/procentric/application/lib/hoteltv.ui_welcome.js"></script>
|
||||
<script src="/procentric/application/lib/hoteltv.hcap.js"></script>
|
||||
<script src="/procentric/application/lib/hoteltv.api.js"></script>
|
||||
<script src="./lib/hoteltv.js"></script>
|
||||
<script src="./lib/hoteltv.ui_utils.js"></script>
|
||||
<script src="./lib/hoteltv.ui_welcome.js"></script>
|
||||
<script src="./lib/hoteltv.hcap.js"></script>
|
||||
<script src="./lib/hoteltv.api.js"></script>
|
||||
|
||||
<!-- MQTT Library -->
|
||||
<script src="/procentric/application/lib/mqtt.min.js"></script>
|
||||
<script src="./lib/mqtt.min.js"></script>
|
||||
|
||||
<script>
|
||||
window.addEventListener('cached', function() {
|
||||
@@ -95,7 +95,7 @@
|
||||
window.addEventListener('load', function() {
|
||||
console.log("loading");
|
||||
HotelTV.state = JSON.parse(sessionStorage.getItem("state"));
|
||||
$('head:first').append('<link rel="stylesheet" type="text/css" href="/procentric/application/theme/' + HotelTV.state['theme_root'] + '/hoteltv.welcome.css" />');
|
||||
$('head:first').append('<link rel="stylesheet" type="text/css" href="./theme/' + HotelTV.state['theme_root'] + '/hoteltv.welcome.css" />');
|
||||
HotelTV.LoadWelCome();
|
||||
});
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<XAIT>
|
||||
<versionNumber>4</versionNumber>
|
||||
<versionNumber>27</versionNumber>
|
||||
<AbstractService>
|
||||
<svcName>Pro:Centric App</svcName>
|
||||
<svcId>0x1204</svcId>
|
||||
@@ -16,10 +16,15 @@
|
||||
<controlCode>AUTOSTART</controlCode>
|
||||
<visibility>NOT_VISIBLE_USERS</visibility>
|
||||
<priority>255</priority>
|
||||
<version>7</version>
|
||||
<version>27</version>
|
||||
</applicationDescriptor>
|
||||
<HcapDescriptor>
|
||||
<url>http://10.20.0.2:8880/procentric/application/index.html</url>
|
||||
<url>http://10.20.0.2:8880/procentric/application/application.zip</url>
|
||||
<applicationStructure>
|
||||
<baseDirectory>/</baseDirectory>
|
||||
<classpathExtension>/</classpathExtension>
|
||||
<initialClass>index.html</initialClass>
|
||||
</applicationStructure>
|
||||
</HcapDescriptor>
|
||||
</Application>
|
||||
</ApplicationList>
|
||||
|
||||
32
procentric/application/xait.xml.localstorage
Executable file
32
procentric/application/xait.xml.localstorage
Executable file
@@ -0,0 +1,32 @@
|
||||
<XAIT>
|
||||
<versionNumber>25</versionNumber>
|
||||
<AbstractService>
|
||||
<svcName>Pro:Centric App</svcName>
|
||||
<svcId>0x1204</svcId>
|
||||
<isAutoSelect>true</isAutoSelect>
|
||||
<ApplicationList>
|
||||
<Application>
|
||||
<appName>CT-HotelIPTV</appName>
|
||||
<applicationIdentifier>
|
||||
<orgId>1</orgId>
|
||||
<appId>1</appId>
|
||||
</applicationIdentifier>
|
||||
<applicationDescriptor>
|
||||
<type>Hcap-h</type>
|
||||
<controlCode>AUTOSTART</controlCode>
|
||||
<visibility>NOT_VISIBLE_USERS</visibility>
|
||||
<priority>255</priority>
|
||||
<version>25</version>
|
||||
</applicationDescriptor>
|
||||
<HcapDescriptor>
|
||||
<url>http://10.20.0.2:8880/procentric/application/application.zip</url>
|
||||
<applicationStructure>
|
||||
<baseDirectory>/</baseDirectory>
|
||||
<classpathExtension>/</classpathExtension>
|
||||
<initialClass>index.html</initialClass>
|
||||
</applicationStructure>
|
||||
</HcapDescriptor>
|
||||
</Application>
|
||||
</ApplicationList>
|
||||
</AbstractService>
|
||||
</XAIT>
|
||||
27
procentric/application/xait.xml.online
Executable file
27
procentric/application/xait.xml.online
Executable file
@@ -0,0 +1,27 @@
|
||||
<XAIT>
|
||||
<versionNumber>5</versionNumber>
|
||||
<AbstractService>
|
||||
<svcName>Pro:Centric App</svcName>
|
||||
<svcId>0x1204</svcId>
|
||||
<isAutoSelect>true</isAutoSelect>
|
||||
<ApplicationList>
|
||||
<Application>
|
||||
<appName>CT-HotelIPTV</appName>
|
||||
<applicationIdentifier>
|
||||
<orgId>1</orgId>
|
||||
<appId>1</appId>
|
||||
</applicationIdentifier>
|
||||
<applicationDescriptor>
|
||||
<type>Hcap-h</type>
|
||||
<controlCode>AUTOSTART</controlCode>
|
||||
<visibility>NOT_VISIBLE_USERS</visibility>
|
||||
<priority>255</priority>
|
||||
<version>8</version>
|
||||
</applicationDescriptor>
|
||||
<HcapDescriptor>
|
||||
<url>http://10.20.0.2:8880/procentric/application/index.html</url>
|
||||
</HcapDescriptor>
|
||||
</Application>
|
||||
</ApplicationList>
|
||||
</AbstractService>
|
||||
</XAIT>
|
||||
@@ -1,6 +1,6 @@
|
||||
<service>
|
||||
<setup>
|
||||
<versionNumber>100</versionNumber>
|
||||
<versionNumber>3</versionNumber>
|
||||
<modelName>65UR762H0NC</modelName>
|
||||
<priority>NORMAL</priority>
|
||||
<content>
|
||||
@@ -12,12 +12,32 @@
|
||||
</content>
|
||||
</setup>
|
||||
<setup>
|
||||
<versionNumber>13</versionNumber>
|
||||
<versionNumber>2</versionNumber>
|
||||
<modelName>65US761H0ND</modelName>
|
||||
<priority>NORMAL</priority>
|
||||
<content>
|
||||
<type>EPK_FIRMWARE</type>
|
||||
<data>starfish-atsc-secured-k6hp-41.242.japoon4hotel.k6hp-41-04.44.00_prodkey_nsu_V3_SECURED.epk</data>
|
||||
<frequency>0</frequency>
|
||||
<programNum>0</programNum>
|
||||
<cTag>0</cTag>
|
||||
</content>
|
||||
</setup>
|
||||
<setup>
|
||||
<versionNumber>4</versionNumber>
|
||||
<modelName>49US761H0ND</modelName>
|
||||
<priority>NORMAL</priority>
|
||||
<content>
|
||||
<type>EPK_FIRMWARE</type>
|
||||
<data>starfish-atsc-secured-k6hp-41.242.japoon4hotel.k6hp-78-04.47.70_prodkey_nsu_V3_SECURED.epk</data>
|
||||
<data>starfish-atsc-secured-k6hp-41.242.japoon4hotel.k6hp-94-04.49.30_prodkey_nsu_V3_SECURED.epk</data>
|
||||
<frequency>0</frequency>
|
||||
<programNum>0</programNum>
|
||||
<cTag>0</cTag>
|
||||
</content>
|
||||
<!-- FOR PTC F/W -->
|
||||
<content>
|
||||
<type>PTC_FIRMWARE</type>
|
||||
<data>xxUS761H0ND_v8.00.088.txt</data>
|
||||
<frequency>0</frequency>
|
||||
<programNum>0</programNum>
|
||||
<cTag>0</cTag>
|
||||
|
||||
11031
procentric/system/xxUS761H0ND_v8.00.088.txt
Executable file
11031
procentric/system/xxUS761H0ND_v8.00.088.txt
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user