3 Commits

Author SHA1 Message Date
paul kim
16ecff93d8 issue #10 #11 Change to online mode to local-storage mode. 2024-07-04 16:23:31 +09:00
paul kim
f2e0890c3d issue #10 #11 Rename hcap to hal. 2024-06-27 10:06:21 +09:00
paul kim
98e8db71fe issue #10 #11 Fix EPG issue when no existed epg info. 2024-06-19 14:20:17 +09:00
8 changed files with 212 additions and 151 deletions

View File

@@ -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}`);

View File

@@ -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>

View File

@@ -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() {
//// 의존 관계 선언
@@ -667,6 +667,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) => {
@@ -1410,7 +1443,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) {

View File

@@ -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() {

View File

@@ -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;
@@ -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(){
@@ -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('-');
let _ChNumStr = __ifxn_getChItemValue(_ChItem, "number").toString();
let _ChNumber = Number(_ChNumStr.split('-')[0]);
// Find out matched channel
if ( Number(_ChNumber)==Number(_strReqNumNext) ){
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;
}
@@ -5177,6 +5172,13 @@ HotelTV.ui_appfull = (function() {
//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
@@ -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);
@@ -6177,7 +6179,7 @@ HotelTV.ui_appfull = (function() {
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 +6191,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 = {
@@ -7004,7 +7006,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 +7041,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 +7056,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 +7532,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 +7547,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 +7555,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 +7570,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 +7578,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 +7594,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 +7603,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 +7618,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}])
}
});

View File

@@ -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}])
}
});

View File

@@ -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;
}

View File

@@ -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();
});