issue #10 #11 instand power mode scheme modified and add some time delay for fading out busy window on play welcome movie.

This commit is contained in:
Paul Kim
2024-04-29 19:46:22 +09:00
parent f679231d2d
commit 1880fae37a
4 changed files with 132 additions and 34 deletions

View File

@@ -86,9 +86,10 @@ var HotelTV = HotelTV || {
},
'dbginfo': {
'en': false,
'emulator': false, //PC 브라우저를 이용할때, true로 설정, 타겟 셋트에서는 false로 설정할것
'hcap_ipc': false,
'output': 'osd'
'emulator': false, //PC에서 emulation할때, true로 설정, 타겟 셋트에서는 false로 설정할것
'hcap_ipc': false, //WEBOS HCAP 라이브러리 내부 메시치 출력 enable/disable
'output': 'osd',
'webdebugger': true //WEBOS 웹 디버거 enable/disable
},
'media_hndl': null,
};
@@ -132,6 +133,12 @@ function __fxn_Set_DebugOpt(_enable, _out_option, _init) {
HotelTV.dbginfo['emulator'] = false;
HotelTV.devinfo['manufacture'] = "LG";
HotelTV.devinfo['tvOS'] = "Web0S";
/** Set HCAP Debug Options */
if (HotelTV.dbginfo['emulator'] == false) {
//Enable/Disable browser debug mode
HotelTV.hcap.SetBrowserDebug(HotelTV.dbginfo['hcap_ipc'], HotelTV.dbginfo['webdebugger']);
}
} else if (navigator.appVersion.includes("Tizen") == true) {
HotelTV.dbginfo['emulator'] = false;
HotelTV.devinfo['manufacture'] = "SAMSUNG";
@@ -176,12 +183,6 @@ function __fxn_Set_DebugOpt(_enable, _out_option, _init) {
}
}
} else {
/** Set HCAP Debug Options */
if (HotelTV.dbginfo['emulator'] == false) {
//Enable/Disable browser debug mode
HotelTV.hcap.SetBrowserDebug(HotelTV.dbginfo['hcap_ipc'], HotelTV.dbginfo['en']);
}
if (HotelTV.dbginfo['en'] != true) {
console.log = function(logmsg) {
}
@@ -200,6 +201,7 @@ HotelTV.Init = async function() {
//SETP#02::> Set Debug Options
__fxn_Set_DebugOpt(false, 'osd', false);
//__fxn_Set_DebugOpt(true, 'native', true);
//STEP#03::> Get Device Info
HotelTV.ui_utils.SetBusy(true);
@@ -525,7 +527,8 @@ HotelTV.LoadWelCome = async function() {
HotelTV.dbginfo = await JSON.parse(sessionStorage.getItem("dbginfo"));
//SETP#02::> Set Debug Options
__fxn_Set_DebugOpt(true, 'osd', true);
__fxn_Set_DebugOpt(false, 'native', true);
//__fxn_Set_DebugOpt(true, 'native', true);
HotelTV.devinfo = await JSON.parse(sessionStorage.getItem("devinfo"));
HotelTV.svrinfo = await JSON.parse(sessionStorage.getItem("svrinfo"));
@@ -661,7 +664,7 @@ HotelTV.LoadAppFull = async function() {
//STEP#01: Load session info
HotelTV.dbginfo = await JSON.parse(sessionStorage.getItem("dbginfo"));
//SETP#02::> Set Debug Options
__fxn_Set_DebugOpt(false, 'native', true);
__fxn_Set_DebugOpt(true, 'native', true);
HotelTV.devinfo = await JSON.parse(sessionStorage.getItem("devinfo"));
HotelTV.svrinfo = await JSON.parse(sessionStorage.getItem("svrinfo"));