@@ -439,10 +439,10 @@
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 409:
|
case 409:
|
||||||
HotelTV.hcap.PwrOff();
|
HotelTV.hal.PwrOff();
|
||||||
break;
|
break;
|
||||||
case 457: // INFO Key
|
case 457: // INFO Key
|
||||||
HotelTV.hcap.GetScrshot();
|
HotelTV.hal.GetScrshot();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
//console.log(`KEY::${e.keyCode}`);
|
//console.log(`KEY::${e.keyCode}`);
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
* Created at : 2020-11-26 02:21:56
|
* Created at : 2020-11-26 02:21:56
|
||||||
* Last modified : 2020-11-26 15:31:40
|
* Last modified : 2020-11-26 15:31:40
|
||||||
*/
|
*/
|
||||||
HotelTV.namespace('HotelTV.hcap');
|
HotelTV.namespace('HotelTV.hal');
|
||||||
HotelTV.hcap = (function() {
|
HotelTV.hal = (function() {
|
||||||
//// 의존 관계 선언
|
//// 의존 관계 선언
|
||||||
|
|
||||||
|
|
||||||
@@ -1410,7 +1410,7 @@ HotelTV.hcap = (function() {
|
|||||||
"onSuccess": function(s) {
|
"onSuccess": function(s) {
|
||||||
if (_en_show_msg == true) {
|
if (_en_show_msg == true) {
|
||||||
console.log("register Success!");
|
console.log("register Success!");
|
||||||
HotelTV.hcap.PreAppGetInfo(true);
|
HotelTV.hal.PreAppGetInfo(true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"onFailure": function(f) {
|
"onFailure": function(f) {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ function __fxn_Set_DebugOpt(_enable, _out_option, _init) {
|
|||||||
HotelTV.dbginfo['en'] = _enable;
|
HotelTV.dbginfo['en'] = _enable;
|
||||||
HotelTV.dbginfo['output'] = _out_option;
|
HotelTV.dbginfo['output'] = _out_option;
|
||||||
|
|
||||||
HotelTV.hcap.Init();
|
HotelTV.hal.Init();
|
||||||
|
|
||||||
/** Develop Mode definitions */
|
/** Develop Mode definitions */
|
||||||
console.log("OPT" + navigator.appVersion);
|
console.log("OPT" + navigator.appVersion);
|
||||||
@@ -144,7 +144,7 @@ function __fxn_Set_DebugOpt(_enable, _out_option, _init) {
|
|||||||
/** Set HCAP Debug Options */
|
/** Set HCAP Debug Options */
|
||||||
if (HotelTV.dbginfo['emulator'] == false) {
|
if (HotelTV.dbginfo['emulator'] == false) {
|
||||||
//Enable/Disable browser debug mode
|
//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) {
|
} else if (navigator.appVersion.includes("Tizen") == true) {
|
||||||
HotelTV.dbginfo['emulator'] = false;
|
HotelTV.dbginfo['emulator'] = false;
|
||||||
@@ -204,7 +204,7 @@ HotelTV.Init = async function() {
|
|||||||
console.log("Start Initialization:: ");
|
console.log("Start Initialization:: ");
|
||||||
|
|
||||||
//STEP#01::> Shutdown Channel
|
//STEP#01::> Shutdown Channel
|
||||||
HotelTV.hcap.ChannelShutDown();
|
HotelTV.hal.ChannelShutDown();
|
||||||
|
|
||||||
//SETP#02::> Set Debug Options
|
//SETP#02::> Set Debug Options
|
||||||
__fxn_Set_DebugOpt(false, 'osd', false);
|
__fxn_Set_DebugOpt(false, 'osd', false);
|
||||||
@@ -213,8 +213,8 @@ HotelTV.Init = async function() {
|
|||||||
//STEP#03::> Get Device Info
|
//STEP#03::> Get Device Info
|
||||||
HotelTV.ui_utils.SetBusy(true);
|
HotelTV.ui_utils.SetBusy(true);
|
||||||
try {
|
try {
|
||||||
await HotelTV.hcap.GetDevInfo();
|
await HotelTV.hal.GetDevInfo();
|
||||||
//await HotelTV.hcap.ShowDevInfo();
|
//await HotelTV.hal.ShowDevInfo();
|
||||||
} catch (_error) {
|
} catch (_error) {
|
||||||
let _tmval = 50;
|
let _tmval = 50;
|
||||||
HotelTV.ui_utils.ShowErrMsg(true,
|
HotelTV.ui_utils.ShowErrMsg(true,
|
||||||
@@ -231,7 +231,7 @@ HotelTV.Init = async function() {
|
|||||||
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
|
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
|
||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -258,7 +258,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...`);
|
$('.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() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -272,7 +272,7 @@ HotelTV.Init = async function() {
|
|||||||
// FULL LICENSE MODE
|
// FULL LICENSE MODE
|
||||||
try {
|
try {
|
||||||
HotelTV.settings = await HotelTV.api.GetSettings();
|
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) {
|
if (need_reboot == true) {
|
||||||
console.log("System Need to Reboot");
|
console.log("System Need to Reboot");
|
||||||
HotelTV.ui_utils.SetBusy(false);
|
HotelTV.ui_utils.SetBusy(false);
|
||||||
@@ -292,7 +292,7 @@ HotelTV.Init = async function() {
|
|||||||
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
|
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
|
||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
@@ -313,7 +313,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...`);
|
$('.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() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -336,7 +336,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...`);
|
$('.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() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -365,7 +365,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...`);
|
$('.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() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -388,7 +388,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...`);
|
$('.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() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -424,7 +424,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...`);
|
$('.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() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -448,7 +448,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...`);
|
$('.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() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -531,7 +531,7 @@ HotelTV.Init = async function() {
|
|||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot`);
|
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot`);
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -579,7 +579,7 @@ HotelTV.LoadWelCome = async function() {
|
|||||||
let _res = HotelTV.devinfo.display_resolution.split("x");
|
let _res = HotelTV.devinfo.display_resolution.split("x");
|
||||||
HotelTV.ui_welcome.Init(_res[0], _res[1]);
|
HotelTV.ui_welcome.Init(_res[0], _res[1]);
|
||||||
|
|
||||||
//await HotelTV.hcap.ShowDevInfo();
|
//await HotelTV.hal.ShowDevInfo();
|
||||||
HotelTV.ui_welcome.Show();
|
HotelTV.ui_welcome.Show();
|
||||||
|
|
||||||
|
|
||||||
@@ -603,8 +603,8 @@ HotelTV.LoadWelCome = async function() {
|
|||||||
//console.log(`Recv Msg[${recvMsg.event}]::> ${recvMsg.ret} ::> ${recvMsg.data}`);
|
//console.log(`Recv Msg[${recvMsg.event}]::> ${recvMsg.ret} ::> ${recvMsg.data}`);
|
||||||
//console.log(`Recv Msg[${recvMsg.event}]::> ${recvMsg.ret}`);
|
//console.log(`Recv Msg[${recvMsg.event}]::> ${recvMsg.ret}`);
|
||||||
if (recvMsg.event == "update_report") {
|
if (recvMsg.event == "update_report") {
|
||||||
HotelTV.hcap.GetUptime();
|
HotelTV.hal.GetUptime();
|
||||||
HotelTV.hcap.GetDeviceUsage().then(_usage => {
|
HotelTV.hal.GetDeviceUsage().then(_usage => {
|
||||||
//console.log(`USAGE::> CPU[${_usage.cpu}%]`);
|
//console.log(`USAGE::> CPU[${_usage.cpu}%]`);
|
||||||
HotelTV.api.ReportBrief(HotelTV.devinfo, HotelTV.guestinfo, _usage);
|
HotelTV.api.ReportBrief(HotelTV.devinfo, HotelTV.guestinfo, _usage);
|
||||||
});
|
});
|
||||||
@@ -761,7 +761,7 @@ HotelTV.LoadAppFull = async function() {
|
|||||||
//STEP#03: INIT HCAP for HotelTV FullAPP
|
//STEP#03: INIT HCAP for HotelTV FullAPP
|
||||||
let tmrAppAuth = setInterval(async function() {
|
let tmrAppAuth = setInterval(async function() {
|
||||||
let _foundNetflix = false;
|
let _foundNetflix = false;
|
||||||
let _hcapAppInfo = await HotelTV.hcap.PreAppGetInfo(false);
|
let _hcapAppInfo = await HotelTV.hal.PreAppGetInfo(false);
|
||||||
HotelTV.state['hcap_app'] = _hcapAppInfo.applist;
|
HotelTV.state['hcap_app'] = _hcapAppInfo.applist;
|
||||||
for (_i = 0; _i < HotelTV.state['hcap_app'].length; _i++) {
|
for (_i = 0; _i < HotelTV.state['hcap_app'].length; _i++) {
|
||||||
if (HotelTV.state['hcap_app'][_i].title == "Netflix") {
|
if (HotelTV.state['hcap_app'][_i].title == "Netflix") {
|
||||||
@@ -783,7 +783,7 @@ HotelTV.LoadAppFull = async function() {
|
|||||||
//siAppToken = _progam[_i].service;
|
//siAppToken = _progam[_i].service;
|
||||||
|
|
||||||
if (siAppName && siAppToken) {
|
if (siAppName && siAppToken) {
|
||||||
HotelTV.hcap.siAppAuth(siAppName, siAppToken, false);
|
HotelTV.hal.siAppAuth(siAppName, siAppToken, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -799,7 +799,7 @@ HotelTV.LoadAppFull = async function() {
|
|||||||
HotelTV.ui_appfull.Init(_res[0], _res[1]);
|
HotelTV.ui_appfull.Init(_res[0], _res[1]);
|
||||||
|
|
||||||
//STEP#06; Show UI
|
//STEP#06; Show UI
|
||||||
//await HotelTV.hcap.ShowDevInfo();
|
//await HotelTV.hal.ShowDevInfo();
|
||||||
HotelTV.ui_appfull.Show();
|
HotelTV.ui_appfull.Show();
|
||||||
|
|
||||||
//STEP#06 Register Service web worker
|
//STEP#06 Register Service web worker
|
||||||
@@ -840,8 +840,8 @@ HotelTV.LoadAppFull = async function() {
|
|||||||
HotelTV.widget = recvMsg.data;
|
HotelTV.widget = recvMsg.data;
|
||||||
}
|
}
|
||||||
} else if (recvMsg.event == "update_report") {
|
} else if (recvMsg.event == "update_report") {
|
||||||
HotelTV.hcap.GetUptime();
|
HotelTV.hal.GetUptime();
|
||||||
HotelTV.hcap.GetDeviceUsage().then(_usage => {
|
HotelTV.hal.GetDeviceUsage().then(_usage => {
|
||||||
//console.log(`USAGE::> CPU[${_usage.cpu}%]`);
|
//console.log(`USAGE::> CPU[${_usage.cpu}%]`);
|
||||||
HotelTV.api.ReportBrief(HotelTV.devinfo, HotelTV.guestinfo, _usage);
|
HotelTV.api.ReportBrief(HotelTV.devinfo, HotelTV.guestinfo, _usage);
|
||||||
});
|
});
|
||||||
@@ -899,7 +899,7 @@ HotelTV.LoadAppFull = async function() {
|
|||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
//HotelTV.hcap.Test();
|
//HotelTV.hal.Test();
|
||||||
}
|
}
|
||||||
|
|
||||||
HotelTV.UnloadAppFull = async function() {
|
HotelTV.UnloadAppFull = async function() {
|
||||||
|
|||||||
@@ -349,11 +349,11 @@ HotelTV.ui_appfull = (function() {
|
|||||||
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeOut(500, function(){
|
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeOut(500, function(){
|
||||||
__uifxn_AppFull_TopWidjetShow(false);
|
__uifxn_AppFull_TopWidjetShow(false);
|
||||||
});
|
});
|
||||||
HotelTV.hcap.VideoWinSize(null);
|
HotelTV.hal.VideoWinSize(null);
|
||||||
break;
|
break;
|
||||||
case 'play_end':
|
case 'play_end':
|
||||||
_state.media.playing = false;
|
_state.media.playing = false;
|
||||||
HotelTV.hcap.MediaStop(
|
HotelTV.hal.MediaStop(
|
||||||
function() {
|
function() {
|
||||||
$('.main .ctzgen .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
$('.main .ctzgen .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||||
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeIn(500, function() {
|
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeIn(500, function() {
|
||||||
@@ -388,14 +388,14 @@ HotelTV.ui_appfull = (function() {
|
|||||||
_state.media.playing = true;
|
_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').removeClass('movieplay');
|
||||||
$('.main .mypage .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item.active').addClass('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(){
|
$('.main .mypage .slider').animate({top:1080, left:0}, 1000, function(){
|
||||||
__uifxn_AppFull_TopWidjetShow(false);
|
__uifxn_AppFull_TopWidjetShow(false);
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
case 'play_end':
|
case 'play_end':
|
||||||
_state.media.playing = false;
|
_state.media.playing = false;
|
||||||
HotelTV.hcap.MediaStop(
|
HotelTV.hal.MediaStop(
|
||||||
function() {
|
function() {
|
||||||
$('.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').removeClass('movieplay');
|
||||||
$('.main .mypage .slider').animate({top:864, left:0}, 1000, function(){
|
$('.main .mypage .slider').animate({top:864, left:0}, 1000, function(){
|
||||||
@@ -466,7 +466,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
let _typeAppFocusEvt = _evt.eventType;
|
let _typeAppFocusEvt = _evt.eventType;
|
||||||
|
|
||||||
if (_typeAppFocusEvt == "focused") {
|
if (_typeAppFocusEvt == "focused") {
|
||||||
// HotelTV.hcap.SetSoftAp({
|
// HotelTV.hal.SetSoftAp({
|
||||||
// "enable": false,
|
// "enable": false,
|
||||||
// });
|
// });
|
||||||
}else if (_typeAppFocusEvt == "unfocused") {
|
}else if (_typeAppFocusEvt == "unfocused") {
|
||||||
@@ -504,7 +504,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
_state.external_input.last_input.index = Number(_evt.index)-1;
|
_state.external_input.last_input.index = Number(_evt.index)-1;
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
$('body,html').fadeOut(500, 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 ){
|
if ( __retSuccess==false ){
|
||||||
_state.external_input.connected = false;
|
_state.external_input.connected = false;
|
||||||
_state.external_input.last_input.index = 0;
|
_state.external_input.last_input.index = 0;
|
||||||
@@ -577,7 +577,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if ( _state.menu.stage.cur=="external_av_hdmi" ) {
|
} 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 ){
|
if ( __retSuccess==false ){
|
||||||
_state.external_input.connected = false;
|
_state.external_input.connected = false;
|
||||||
_state.external_input.last_input.index = 0;
|
_state.external_input.last_input.index = 0;
|
||||||
@@ -2084,7 +2084,6 @@ HotelTV.ui_appfull = (function() {
|
|||||||
_elMainRoot.fadeOut(500, function() {
|
_elMainRoot.fadeOut(500, function() {
|
||||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(false);
|
__uifxn_AppFull_HotKey_ShowBtnOnMM(false);
|
||||||
__uifxn_AppFull_TopWidjetShow(false);
|
__uifxn_AppFull_TopWidjetShow(false);
|
||||||
_elMainRoot.removeClass("depth_mm");
|
|
||||||
_elAmPupRoot.children('.slider').fadeIn(300, function() {
|
_elAmPupRoot.children('.slider').fadeIn(300, function() {
|
||||||
_elAmPupRoot.children('.bg').fadeIn(500, function() {
|
_elAmPupRoot.children('.bg').fadeIn(500, function() {
|
||||||
_elAmCtgySel.find('.owl-item').addClass('unfocus');
|
_elAmCtgySel.find('.owl-item').addClass('unfocus');
|
||||||
@@ -2146,7 +2145,6 @@ HotelTV.ui_appfull = (function() {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.main').fadeIn(1000, () => {
|
$('.main').fadeIn(1000, () => {
|
||||||
_state.menu.stage.cur = "main";
|
_state.menu.stage.cur = "main";
|
||||||
$('.main').addClass("depth_mm");
|
|
||||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||||
__uifxn_AppFull_TopWidjetShow(true);
|
__uifxn_AppFull_TopWidjetShow(true);
|
||||||
_state.menu.stage.prev = null;
|
_state.menu.stage.prev = null;
|
||||||
@@ -2197,7 +2195,6 @@ HotelTV.ui_appfull = (function() {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.main').fadeIn(1000, () => {
|
$('.main').fadeIn(1000, () => {
|
||||||
_state.menu.stage.cur = "main";
|
_state.menu.stage.cur = "main";
|
||||||
$('.main').addClass("depth_mm");
|
|
||||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||||
__uifxn_AppFull_TopWidjetShow(true);
|
__uifxn_AppFull_TopWidjetShow(true);
|
||||||
_state.menu.stage.prev = null;
|
_state.menu.stage.prev = null;
|
||||||
@@ -3627,7 +3624,6 @@ HotelTV.ui_appfull = (function() {
|
|||||||
_elMainRoot.fadeOut(500, function() {
|
_elMainRoot.fadeOut(500, function() {
|
||||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(false);
|
__uifxn_AppFull_HotKey_ShowBtnOnMM(false);
|
||||||
__uifxn_AppFull_TopWidjetShow(false);
|
__uifxn_AppFull_TopWidjetShow(false);
|
||||||
_elMainRoot.removeClass("depth_mm");
|
|
||||||
_elRsPupRoot.children('.slider').fadeIn(300, function() {
|
_elRsPupRoot.children('.slider').fadeIn(300, function() {
|
||||||
_elRsPupRoot.children('.bg').fadeIn(500, function() {
|
_elRsPupRoot.children('.bg').fadeIn(500, function() {
|
||||||
_elRsCtgySel.find('.owl-item').addClass('unfocus');
|
_elRsCtgySel.find('.owl-item').addClass('unfocus');
|
||||||
@@ -3689,7 +3685,6 @@ HotelTV.ui_appfull = (function() {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.main').fadeIn(1000, () => {
|
$('.main').fadeIn(1000, () => {
|
||||||
_state.menu.stage.cur = "main";
|
_state.menu.stage.cur = "main";
|
||||||
$('.main').addClass("depth_mm");
|
|
||||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||||
__uifxn_AppFull_TopWidjetShow(true);
|
__uifxn_AppFull_TopWidjetShow(true);
|
||||||
_state.menu.stage.prev = null;
|
_state.menu.stage.prev = null;
|
||||||
@@ -3739,7 +3734,6 @@ HotelTV.ui_appfull = (function() {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.main').fadeIn(1000, () => {
|
$('.main').fadeIn(1000, () => {
|
||||||
_state.menu.stage.cur = "main";
|
_state.menu.stage.cur = "main";
|
||||||
$('.main').addClass("depth_mm");
|
|
||||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||||
__uifxn_AppFull_TopWidjetShow(true);
|
__uifxn_AppFull_TopWidjetShow(true);
|
||||||
_state.menu.stage.prev = null;
|
_state.menu.stage.prev = null;
|
||||||
@@ -4665,7 +4659,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
if (uri_video != null) {
|
if (uri_video != null) {
|
||||||
_state.menu.stage.prev = _state.menu.stage.cur;
|
_state.menu.stage.prev = _state.menu.stage.cur;
|
||||||
_state.menu.stage.cur = "mypage_replay_welcome_vod";
|
_state.menu.stage.cur = "mypage_replay_welcome_vod";
|
||||||
HotelTV.hcap.MediaPlay(
|
HotelTV.hal.MediaPlay(
|
||||||
uri_video,
|
uri_video,
|
||||||
"",
|
"",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
@@ -4688,7 +4682,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
{
|
{
|
||||||
if (_state.media.playing == true) {
|
if (_state.media.playing == true) {
|
||||||
_state.media.playing = false;
|
_state.media.playing = false;
|
||||||
HotelTV.hcap.MediaStop(
|
HotelTV.hal.MediaStop(
|
||||||
function() {
|
function() {
|
||||||
$('.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').removeClass('movieplay');
|
||||||
$('.main .mypage .slider').animate({top:864, left:0}, 1000, function(){
|
$('.main .mypage .slider').animate({top:864, left:0}, 1000, function(){
|
||||||
@@ -4857,7 +4851,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
} else if (_tvChInfo.type == "encoder") {
|
} else if (_tvChInfo.type == "encoder") {
|
||||||
// ENCODER
|
// ENCODER
|
||||||
}
|
}
|
||||||
HotelTV.hcap.ChannelSetup(_tvChInfo.type, _chReqParam);
|
HotelTV.hal.ChannelSetup(_tvChInfo.type, _chReqParam);
|
||||||
|
|
||||||
//TODO: 아래 실제 채널 셋업 부분 주석처리 되어 있는데, IP와 RF모두 처리 할 수 있도록 구현할것
|
//TODO: 아래 실제 채널 셋업 부분 주석처리 되어 있는데, IP와 RF모두 처리 할 수 있도록 구현할것
|
||||||
//let _uri_stream = _tvChInfo.url.split('://@')[1];
|
//let _uri_stream = _tvChInfo.url.split('://@')[1];
|
||||||
@@ -4865,7 +4859,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
//let _uri_ip = _uri_stream.split(':')[0];
|
//let _uri_ip = _uri_stream.split(':')[0];
|
||||||
//let _uri_port = _uri_stream.split(':')[1];
|
//let _uri_port = _uri_stream.split(':')[1];
|
||||||
//console.log(`ip = ${_uri_ip} port=${_uri_port} protocol=${_typ_proto}`);
|
//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 max = Math.floor(16);
|
||||||
// let _major = Math.floor(Math.random() * (max - min + 1)) + min;
|
// let _major = Math.floor(Math.random() * (max - min + 1)) + min;
|
||||||
// console.log("Major=5 minor=" + _major);
|
// 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([{
|
HotelTV.api.ReportEvent([{
|
||||||
@@ -5682,7 +5676,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
$('.main').animate({ top: -1080, left: 0 }, 1000, () => {
|
$('.main').animate({ top: -1080, left: 0 }, 1000, () => {
|
||||||
$('.main .ctzgen').hide();
|
$('.main .ctzgen').hide();
|
||||||
_state.media.playing = false;
|
_state.media.playing = false;
|
||||||
HotelTV.hcap.MediaStop(null, null);
|
HotelTV.hal.MediaStop(null, null);
|
||||||
|
|
||||||
$('#lst_ctzgenbg').off('refresh.owl.carousel');
|
$('#lst_ctzgenbg').off('refresh.owl.carousel');
|
||||||
$('#lst_ctzgenbg').off('change.owl.carousel');
|
$('#lst_ctzgenbg').off('change.owl.carousel');
|
||||||
@@ -5701,7 +5695,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
if ($('.main .ctzgen .bg .owl-carousel .owl-item.active .ctz_mv_ctrl').length == 1) {
|
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');
|
let uri_video = $($('.main .ctzgen .bg .owl-carousel .owl-item.active .ctz_mv_ctrl')[0]).attr('video_url');
|
||||||
if (uri_video != null) {
|
if (uri_video != null) {
|
||||||
HotelTV.hcap.MediaPlay(
|
HotelTV.hal.MediaPlay(
|
||||||
uri_video,
|
uri_video,
|
||||||
"",
|
"",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
@@ -5718,7 +5712,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
} else if (event.keyCode == gRmtKey.stop) {
|
} else if (event.keyCode == gRmtKey.stop) {
|
||||||
if (_state.media.playing == true) {
|
if (_state.media.playing == true) {
|
||||||
_state.media.playing = false;
|
_state.media.playing = false;
|
||||||
HotelTV.hcap.MediaStop(
|
HotelTV.hal.MediaStop(
|
||||||
function() {
|
function() {
|
||||||
$('.main .ctzgen .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
$('.main .ctzgen .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||||
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeIn(1000);
|
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeIn(1000);
|
||||||
@@ -5788,7 +5782,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
|
|
||||||
const __ifxn_exitTvMenu = function() {
|
const __ifxn_exitTvMenu = function() {
|
||||||
// 현재 재생중인 TV채널 종료
|
// 현재 재생중인 TV채널 종료
|
||||||
HotelTV.hcap.ChannelShutDown();
|
HotelTV.hal.ChannelShutDown();
|
||||||
|
|
||||||
if (_hndl_tmrTvChnMngr != null) {
|
if (_hndl_tmrTvChnMngr != null) {
|
||||||
clearInterval(_hndl_tmrTvChnMngr);
|
clearInterval(_hndl_tmrTvChnMngr);
|
||||||
@@ -6185,7 +6179,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
try {
|
try {
|
||||||
let found_dev_locale = false;
|
let found_dev_locale = false;
|
||||||
// SET PLATFORM LANGUAGE
|
// SET PLATFORM LANGUAGE
|
||||||
// HotelTV.hcap.SetPlatformLanguage(_state.lang);
|
// HotelTV.hal.SetPlatformLanguage(_state.lang);
|
||||||
if ( 'getLocaleList' in HotelTV.devinfo )
|
if ( 'getLocaleList' in HotelTV.devinfo )
|
||||||
{
|
{
|
||||||
for( let _localeIdx in HotelTV.devinfo.getLocaleList )
|
for( let _localeIdx in HotelTV.devinfo.getLocaleList )
|
||||||
@@ -6197,10 +6191,10 @@ HotelTV.ui_appfull = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( found_dev_locale==true ){
|
if ( found_dev_locale==true ){
|
||||||
HotelTV.hcap.SetDeviceLocale(_nextLang);
|
HotelTV.hal.SetDeviceLocale(_nextLang);
|
||||||
}else{
|
}else{
|
||||||
console.log("Set Default device locale set to en-US");
|
console.log("Set Default device locale set to en-US");
|
||||||
HotelTV.hcap.SetDeviceLocale('en-US');
|
HotelTV.hal.SetDeviceLocale('en-US');
|
||||||
}
|
}
|
||||||
|
|
||||||
let _usrDataJson = {
|
let _usrDataJson = {
|
||||||
@@ -7012,7 +7006,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
// 현재 재생중인 TV채널 종료
|
// 현재 재생중인 TV채널 종료
|
||||||
if ( _state.tv.playing == true ){
|
if ( _state.tv.playing == true ){
|
||||||
console.warn("Try to channel shutdown..");
|
console.warn("Try to channel shutdown..");
|
||||||
HotelTV.hcap.ChannelShutDown();
|
HotelTV.hal.ChannelShutDown();
|
||||||
_state.tv.playing = false;
|
_state.tv.playing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7047,12 +7041,12 @@ HotelTV.ui_appfull = (function() {
|
|||||||
console.log("Preparing TV APP::>" + _program[Number(_state.menu.main.cur)].service);
|
console.log("Preparing TV APP::>" + _program[Number(_state.menu.main.cur)].service);
|
||||||
if (_program[Number(_state.menu.main.cur)].service == "youtube") {
|
if (_program[Number(_state.menu.main.cur)].service == "youtube") {
|
||||||
// console.log(`Type:${_program[Number(_state.menu.main.cur)].type} preparing WIFI AP...`);
|
// console.log(`Type:${_program[Number(_state.menu.main.cur)].type} preparing WIFI AP...`);
|
||||||
// HotelTV.hcap.SetSoftAp({
|
// HotelTV.hal.SetSoftAp({
|
||||||
// "enable": true,
|
// "enable": true,
|
||||||
// "ssid": "TVWIFI-" + HotelTV.guestinfo.room,
|
// "ssid": "TVWIFI-" + HotelTV.guestinfo.room,
|
||||||
// "password": "12345678",
|
// "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") {
|
} else if (_program[Number(_state.menu.main.cur)].service == "netflix") {
|
||||||
let _foundNetflix = false;
|
let _foundNetflix = false;
|
||||||
for (_i = 0; _i < _state['hcap_app'].length; _i++) {
|
for (_i = 0; _i < _state['hcap_app'].length; _i++) {
|
||||||
@@ -7062,12 +7056,12 @@ HotelTV.ui_appfull = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_foundNetflix == true) {
|
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 {
|
} else {
|
||||||
HotelTV.ui_utils.ShowNotificationMsgBalloon(_trTbl.system.ott_service_not_ready[_state.lang], 5);
|
HotelTV.ui_utils.ShowNotificationMsgBalloon(_trTbl.system.ott_service_not_ready[_state.lang], 5);
|
||||||
}
|
}
|
||||||
} else if (_program[Number(_state.menu.main.cur)].service == "screenmirroring") {
|
} 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") {
|
} else if (_program[Number(_state.menu.main.cur)].type.toLowerCase() == "language") {
|
||||||
console.log("Preparing language select sub menu...");
|
console.log("Preparing language select sub menu...");
|
||||||
@@ -7552,7 +7546,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -7575,7 +7569,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -7598,8 +7592,8 @@ HotelTV.ui_appfull = (function() {
|
|||||||
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
//setTimeout(HotelTV.hcap.PwrOff, 500);
|
//setTimeout(HotelTV.hal.PwrOff, 500);
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -7624,7 +7618,7 @@ HotelTV.ui_appfull = (function() {
|
|||||||
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ HotelTV.ui_welcome = (function() {
|
|||||||
switch (_stateMedia) {
|
switch (_stateMedia) {
|
||||||
case 'play_start':
|
case 'play_start':
|
||||||
_media_status = 'playing';
|
_media_status = 'playing';
|
||||||
HotelTV.hcap.VideoWinSize(null);
|
HotelTV.hal.VideoWinSize(null);
|
||||||
|
|
||||||
//Hide welcome page
|
//Hide welcome page
|
||||||
__uifxn_WC_Show(null, function() {
|
__uifxn_WC_Show(null, function() {
|
||||||
@@ -86,7 +86,7 @@ HotelTV.ui_welcome = (function() {
|
|||||||
break;
|
break;
|
||||||
case 'play_end':
|
case 'play_end':
|
||||||
_media_status = 'stopped';
|
_media_status = 'stopped';
|
||||||
HotelTV.hcap.MediaShutdown(
|
HotelTV.hal.MediaShutdown(
|
||||||
function() {
|
function() {
|
||||||
$(".control .skip_video").hide();
|
$(".control .skip_video").hide();
|
||||||
console.log("Media Desory::Done");
|
console.log("Media Desory::Done");
|
||||||
@@ -99,7 +99,7 @@ HotelTV.ui_welcome = (function() {
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'play_end_need_destory':
|
case 'play_end_need_destory':
|
||||||
HotelTV.hcap.MediaShutdown(
|
HotelTV.hal.MediaShutdown(
|
||||||
function() {
|
function() {
|
||||||
$(".control .skip_video").hide();
|
$(".control .skip_video").hide();
|
||||||
console.log("Media Desory::Done");
|
console.log("Media Desory::Done");
|
||||||
@@ -126,7 +126,7 @@ HotelTV.ui_welcome = (function() {
|
|||||||
|
|
||||||
case 'play_stop_requtested':
|
case 'play_stop_requtested':
|
||||||
_media_status = 'stopped';
|
_media_status = 'stopped';
|
||||||
HotelTV.hcap.MediaShutdown(
|
HotelTV.hal.MediaShutdown(
|
||||||
function() {
|
function() {
|
||||||
$(".control .skip_video").hide();
|
$(".control .skip_video").hide();
|
||||||
console.log("Media Desory::Done");
|
console.log("Media Desory::Done");
|
||||||
@@ -332,7 +332,7 @@ HotelTV.ui_welcome = (function() {
|
|||||||
|
|
||||||
let found_dev_locale = false;
|
let found_dev_locale = false;
|
||||||
// SET PLATFORM LANGUAGE
|
// SET PLATFORM LANGUAGE
|
||||||
// HotelTV.hcap.SetPlatformLanguage(_state.lang);
|
// HotelTV.hal.SetPlatformLanguage(_state.lang);
|
||||||
if ( 'getLocaleList' in HotelTV.devinfo )
|
if ( 'getLocaleList' in HotelTV.devinfo )
|
||||||
{
|
{
|
||||||
for( let _localeIdx in HotelTV.devinfo.getLocaleList )
|
for( let _localeIdx in HotelTV.devinfo.getLocaleList )
|
||||||
@@ -344,10 +344,10 @@ HotelTV.ui_welcome = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( found_dev_locale==true ){
|
if ( found_dev_locale==true ){
|
||||||
HotelTV.hcap.SetDeviceLocale(_state.lang);
|
HotelTV.hal.SetDeviceLocale(_state.lang);
|
||||||
}else{
|
}else{
|
||||||
console.log("Set Default device locale set to en-US");
|
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') {
|
} else if (_ctzWc.intro == 'video') {
|
||||||
HotelTV.ui_utils.SetBusy(true);
|
HotelTV.ui_utils.SetBusy(true);
|
||||||
/** Play movie clip */
|
/** Play movie clip */
|
||||||
HotelTV.hcap.MediaPlay(
|
HotelTV.hal.MediaPlay(
|
||||||
_ctzWc.videos[_state.lang].download,
|
_ctzWc.videos[_state.lang].download,
|
||||||
null,
|
null,
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
@@ -493,7 +493,7 @@ HotelTV.ui_welcome = (function() {
|
|||||||
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -516,7 +516,7 @@ HotelTV.ui_welcome = (function() {
|
|||||||
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -539,8 +539,8 @@ HotelTV.ui_welcome = (function() {
|
|||||||
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
//setTimeout(HotelTV.hcap.PwrOff, 500);
|
//setTimeout(HotelTV.hal.PwrOff, 500);
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -565,7 +565,7 @@ HotelTV.ui_welcome = (function() {
|
|||||||
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
||||||
},
|
},
|
||||||
"cb_eoe": function() {
|
"cb_eoe": function() {
|
||||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
setTimeout(HotelTV.hal.Reboot, 500);
|
||||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user