Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1eb5513c39 | ||
|
|
13bf756eb6 | ||
|
|
05f801169b | ||
|
|
2061b695c6 | ||
|
|
411c3b9635 | ||
|
|
123c9d794d |
@@ -993,33 +993,6 @@ HotelTV.hal = (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 ){
|
||||
@@ -1027,6 +1000,33 @@ HotelTV.hal = (function() {
|
||||
_pmFxnArProperty.push(__hcapfxn_set_powermode('power_mode', hcap.power.PowerMode.WARM));
|
||||
}
|
||||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// STEP#006::> SERVICE RELATED PARAMETERS
|
||||
|
||||
@@ -214,8 +214,8 @@ HotelTV.Init = async function() {
|
||||
HotelTV.ui_utils.SetBusy(true);
|
||||
|
||||
const __ifxn_showFatalErr_Network = function() {
|
||||
let _tmval = 10;
|
||||
setTimeout(HotelTV.hal.Reboot, 10000);
|
||||
let _tmval = 30;
|
||||
setTimeout(HotelTV.hal.Reboot, 29000);
|
||||
HotelTV.ui_utils.SetBusy(false);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.error.get-devinfo",
|
||||
@@ -320,8 +320,8 @@ HotelTV.Init = async function() {
|
||||
console.log("System Need to Reboot");
|
||||
HotelTV.ui_utils.SetBusy(false);
|
||||
|
||||
let _tmval = 20;
|
||||
setTimeout(HotelTV.hal.Reboot, 20000);
|
||||
let _tmval = 30;
|
||||
setTimeout(HotelTV.hal.Reboot, 29000);
|
||||
HotelTV.ui_utils.ShowErrMsg(true,
|
||||
"system.info.change-configuration",
|
||||
"SYSTEM INFO",
|
||||
|
||||
@@ -480,6 +480,7 @@ HotelTV.ui_appfull = (function() {
|
||||
*/
|
||||
function __uifxn_AppFull_OnHdmiConChangeEvt(_evt) {
|
||||
let _state = HotelTV.state;
|
||||
let _devinfo = HotelTV.devinfo;
|
||||
let _trTbl = HotelTV.translation;
|
||||
// {Number} param.index - index of the HDMI which was connected or disconnected.
|
||||
// {Boolean} param.connected - true if the HDMI is connected, else false.
|
||||
@@ -501,10 +502,15 @@ HotelTV.ui_appfull = (function() {
|
||||
_state.menu.stage.prev = _state.menu.stage.cur;
|
||||
_state.menu.stage.cur = "external_av_hdmi";
|
||||
_state.external_input.connected = true;
|
||||
_state.external_input.last_input.index = Number(_evt.index)-1;
|
||||
// NOTE: US741H0ND모델에서 HDMI셋팅 인덱스는 0부터, 이 부분은 LG에 문의 필요
|
||||
if (_devinfo.model_name.includes("US761H0ND")) {
|
||||
_state.external_input.last_input.index = Number(_evt.index);
|
||||
} else {
|
||||
_state.external_input.last_input.index = Number(_evt.index)-1;
|
||||
}
|
||||
setTimeout(function(){
|
||||
$('body,html').fadeOut(500, function(){
|
||||
let __retSuccess = HotelTV.hal.SetExternalInput("HDMI", Number(_evt.index)-1);
|
||||
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;
|
||||
@@ -4032,32 +4038,42 @@ HotelTV.ui_appfull = (function() {
|
||||
|
||||
let _rtn_epg = null;
|
||||
for (_j=0; _j<_epg_prom_info.length; _j++) {
|
||||
let _schTmPrev = new Date();
|
||||
let _schTmNext = new Date();
|
||||
let _schTmCur = new Date();
|
||||
let _epgProgInf_Cur = _epg_prom_info[_j];
|
||||
let _epgProgInf_Prev = null;
|
||||
let _epgProgInf_Next = null;
|
||||
|
||||
if (_epgProgInf_Cur.time.length != 5) {
|
||||
console.log("EPG Schedule org time is NULL");
|
||||
} else {
|
||||
let __str_playingTime = null;
|
||||
|
||||
_schTmCur.setHours(Number(_epgProgInf_Cur.time.charAt(0) + _epgProgInf_Cur.time.charAt(1)));
|
||||
_schTmCur.setMinutes(Number(_epgProgInf_Cur.time.charAt(3) + _epgProgInf_Cur.time.charAt(4)));
|
||||
|
||||
// EPG shedule정보는 인덱스 0부터 시작
|
||||
if ( _j>0 ){
|
||||
_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)));
|
||||
if ( _j<(_epg_prom_info.length-1) ){
|
||||
_epgProgInf_Next = _epg_prom_info[_j+1];
|
||||
_schTmNext.setHours(Number(_epgProgInf_Next.time.charAt(0) + _epgProgInf_Next.time.charAt(1)));
|
||||
_schTmNext.setMinutes(Number(_epgProgInf_Next.time.charAt(3) + _epgProgInf_Next.time.charAt(4)));
|
||||
|
||||
__str_playingTime = `${_epgProgInf_Cur.time}~${_epgProgInf_Next.time}`;
|
||||
} else {
|
||||
//
|
||||
_schTmNext.setMinutes(Number(0));
|
||||
_schTmNext.setHours(Number(24));
|
||||
|
||||
__str_playingTime = `${_epgProgInf_Cur.time}~`;
|
||||
}
|
||||
|
||||
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
|
||||
let _t_playTotal = Math.round((_schTmNext - _schTmCur) / 60000); //Total play time in minuate
|
||||
let _t_playRemain = Math.round((_schTmNext - _tm_cur) / 60000); //Remain play time in minuate
|
||||
|
||||
_rtn_epg = _epgProgInf_Cur;
|
||||
if (_t_playRemain >= 0) {
|
||||
//console.log("CHNAME::>" + _ch_name + " Remaining::> " + _t_playRemain);
|
||||
_rtn_epg["progress_pcent"] = parseInt(((_t_playTotal-_t_playRemain)*100)/_t_playTotal, 10);
|
||||
_rtn_epg["playing_time"] = `${_epgProgInf_Prev.time}~${_epgProgInf_Cur.time}`;
|
||||
_rtn_epg["playing_time"] = __str_playingTime;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
width: 620px;
|
||||
height: 830px;
|
||||
color: rgb(255, 255, 255);
|
||||
background-color: rgba(50,40,26, 0.7);
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
padding: 0px 12px 0px 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
background-color: rgba(50,40,26, 0.7);
|
||||
background-color: rgba(19, 21, 23, 0.6);
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
@@ -133,7 +133,7 @@ div#sm_item_icon {
|
||||
width: 360px;
|
||||
height: 734px;
|
||||
line-height: 50px;
|
||||
background-color: rgba(50,40,26, 0.7);
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ body {
|
||||
/* background-image: url(./images/bg_language_welcome_box.png);
|
||||
background-size: cover; */
|
||||
background-repeat: no-repeat;
|
||||
background: linear-gradient(rgba(50,40,26,0.7),rgba(50,46,26,0.85));
|
||||
background: linear-gradient(rgba(45,45,45,0.6),rgba(16,16,16,0.7));
|
||||
border-radius: 11px;
|
||||
filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 615 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 714 B |
Reference in New Issue
Block a user