issue #10 #11 Rename hcap to hal.

This commit is contained in:
paul kim
2024-06-27 10:06:21 +09:00
parent 98e8db71fe
commit f2e0890c3d
5 changed files with 72 additions and 78 deletions

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",
@@ -493,7 +493,7 @@ HotelTV.ui_welcome = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
},
"cb_eoe": function() {
setTimeout(HotelTV.hcap.Reboot, 500);
setTimeout(HotelTV.hal.Reboot, 500);
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...`);
},
"cb_eoe": function() {
setTimeout(HotelTV.hcap.Reboot, 500);
setTimeout(HotelTV.hal.Reboot, 500);
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...`);
},
"cb_eoe": function() {
//setTimeout(HotelTV.hcap.PwrOff, 500);
setTimeout(HotelTV.hcap.Reboot, 500);
//setTimeout(HotelTV.hal.PwrOff, 500);
setTimeout(HotelTV.hal.Reboot, 500);
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...`);
},
"cb_eoe": function() {
setTimeout(HotelTV.hcap.Reboot, 500);
setTimeout(HotelTV.hal.Reboot, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
}
});