issue#1 Remodeling roomservice ui and operating scheme.

This commit is contained in:
Paul Kim
2022-06-16 00:26:30 +09:00
parent 3a58120e00
commit 05f5d61c84
7 changed files with 1706 additions and 1804 deletions

View File

@@ -539,39 +539,39 @@ 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);
HotelTV.state['hcap_app'] = _hcapAppInfo.applist;
for (_i = 0; _i < HotelTV.state['hcap_app'].length; _i++) {
if (HotelTV.state['hcap_app'][_i].title == "Netflix") {
console.log("Found out netflix among of pre hcap app-list.")
clearInterval(tmrAppAuth);
}
}
// let tmrAppAuth = setInterval(async function() {
// let _foundNetflix = false;
// let _hcapAppInfo = await HotelTV.hcap.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") {
// console.log("Found out netflix among of pre hcap app-list.")
// clearInterval(tmrAppAuth);
// }
// }
if (_foundNetflix == false) {
try {
let siAppToken = null;
let siAppName = null;
// siApp Token Authentication
let _progam = HotelTV.tvguide.program;
for (let _i = 1; _i <= _progam.length; _i++) {
if (_progam[_i].type == "application" && _progam[_i].service == "netflix") {
siAppToken = await HotelTV.api.DownloadData(_progam[_i].license.file.download);
siAppName = _progam[_i].service;
//siAppToken = _progam[_i].service;
// if (_foundNetflix == false) {
// try {
// let siAppToken = null;
// let siAppName = null;
// // siApp Token Authentication
// let _progam = HotelTV.tvguide.program;
// for (let _i = 1; _i <= _progam.length; _i++) {
// if (_progam[_i].type == "application" && _progam[_i].service == "netflix") {
// siAppToken = await HotelTV.api.DownloadData(_progam[_i].license.file.download);
// siAppName = _progam[_i].service;
// //siAppToken = _progam[_i].service;
if (siAppName && siAppToken) {
HotelTV.hcap.siAppAuth(siAppName, siAppToken, false);
}
}
}
} catch (_error) {
console.log("Display Error page for get siApp Auth");
}
}
}, 5000);
// if (siAppName && siAppToken) {
// HotelTV.hcap.siAppAuth(siAppName, siAppToken, false);
// }
// }
// }
// } catch (_error) {
// console.log("Display Error page for get siApp Auth");
// }
// }
// }, 5000);
//STEP#05: Set Display size