@@ -349,11 +349,11 @@ HotelTV.ui_appfull = (function() {
|
||||
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeOut(500, function(){
|
||||
__uifxn_AppFull_TopWidjetShow(false);
|
||||
});
|
||||
HotelTV.hcap.VideoWinSize(null);
|
||||
HotelTV.hal.VideoWinSize(null);
|
||||
break;
|
||||
case 'play_end':
|
||||
_state.media.playing = false;
|
||||
HotelTV.hcap.MediaStop(
|
||||
HotelTV.hal.MediaStop(
|
||||
function() {
|
||||
$('.main .ctzgen .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeIn(500, function() {
|
||||
@@ -388,14 +388,14 @@ HotelTV.ui_appfull = (function() {
|
||||
_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.active').addClass('movieplay');
|
||||
HotelTV.hcap.VideoWinSize(null);
|
||||
HotelTV.hal.VideoWinSize(null);
|
||||
$('.main .mypage .slider').animate({top:1080, left:0}, 1000, function(){
|
||||
__uifxn_AppFull_TopWidjetShow(false);
|
||||
})
|
||||
break;
|
||||
case 'play_end':
|
||||
_state.media.playing = false;
|
||||
HotelTV.hcap.MediaStop(
|
||||
HotelTV.hal.MediaStop(
|
||||
function() {
|
||||
$('.main .mypage .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||
$('.main .mypage .slider').animate({top:864, left:0}, 1000, function(){
|
||||
@@ -466,7 +466,7 @@ HotelTV.ui_appfull = (function() {
|
||||
let _typeAppFocusEvt = _evt.eventType;
|
||||
|
||||
if (_typeAppFocusEvt == "focused") {
|
||||
// HotelTV.hcap.SetSoftAp({
|
||||
// HotelTV.hal.SetSoftAp({
|
||||
// "enable": false,
|
||||
// });
|
||||
}else if (_typeAppFocusEvt == "unfocused") {
|
||||
@@ -504,7 +504,7 @@ HotelTV.ui_appfull = (function() {
|
||||
_state.external_input.last_input.index = Number(_evt.index)-1;
|
||||
setTimeout(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 ){
|
||||
_state.external_input.connected = false;
|
||||
_state.external_input.last_input.index = 0;
|
||||
@@ -577,7 +577,7 @@ HotelTV.ui_appfull = (function() {
|
||||
}
|
||||
});
|
||||
} 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 ){
|
||||
_state.external_input.connected = false;
|
||||
_state.external_input.last_input.index = 0;
|
||||
@@ -2084,7 +2084,6 @@ HotelTV.ui_appfull = (function() {
|
||||
_elMainRoot.fadeOut(500, function() {
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(false);
|
||||
__uifxn_AppFull_TopWidjetShow(false);
|
||||
_elMainRoot.removeClass("depth_mm");
|
||||
_elAmPupRoot.children('.slider').fadeIn(300, function() {
|
||||
_elAmPupRoot.children('.bg').fadeIn(500, function() {
|
||||
_elAmCtgySel.find('.owl-item').addClass('unfocus');
|
||||
@@ -2146,7 +2145,6 @@ HotelTV.ui_appfull = (function() {
|
||||
setTimeout(function() {
|
||||
$('.main').fadeIn(1000, () => {
|
||||
_state.menu.stage.cur = "main";
|
||||
$('.main').addClass("depth_mm");
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||
__uifxn_AppFull_TopWidjetShow(true);
|
||||
_state.menu.stage.prev = null;
|
||||
@@ -2197,7 +2195,6 @@ HotelTV.ui_appfull = (function() {
|
||||
setTimeout(function() {
|
||||
$('.main').fadeIn(1000, () => {
|
||||
_state.menu.stage.cur = "main";
|
||||
$('.main').addClass("depth_mm");
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||
__uifxn_AppFull_TopWidjetShow(true);
|
||||
_state.menu.stage.prev = null;
|
||||
@@ -3627,7 +3624,6 @@ HotelTV.ui_appfull = (function() {
|
||||
_elMainRoot.fadeOut(500, function() {
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(false);
|
||||
__uifxn_AppFull_TopWidjetShow(false);
|
||||
_elMainRoot.removeClass("depth_mm");
|
||||
_elRsPupRoot.children('.slider').fadeIn(300, function() {
|
||||
_elRsPupRoot.children('.bg').fadeIn(500, function() {
|
||||
_elRsCtgySel.find('.owl-item').addClass('unfocus');
|
||||
@@ -3689,7 +3685,6 @@ HotelTV.ui_appfull = (function() {
|
||||
setTimeout(function() {
|
||||
$('.main').fadeIn(1000, () => {
|
||||
_state.menu.stage.cur = "main";
|
||||
$('.main').addClass("depth_mm");
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||
__uifxn_AppFull_TopWidjetShow(true);
|
||||
_state.menu.stage.prev = null;
|
||||
@@ -3739,7 +3734,6 @@ HotelTV.ui_appfull = (function() {
|
||||
setTimeout(function() {
|
||||
$('.main').fadeIn(1000, () => {
|
||||
_state.menu.stage.cur = "main";
|
||||
$('.main').addClass("depth_mm");
|
||||
__uifxn_AppFull_HotKey_ShowBtnOnMM(true);
|
||||
__uifxn_AppFull_TopWidjetShow(true);
|
||||
_state.menu.stage.prev = null;
|
||||
@@ -4665,7 +4659,7 @@ HotelTV.ui_appfull = (function() {
|
||||
if (uri_video != null) {
|
||||
_state.menu.stage.prev = _state.menu.stage.cur;
|
||||
_state.menu.stage.cur = "mypage_replay_welcome_vod";
|
||||
HotelTV.hcap.MediaPlay(
|
||||
HotelTV.hal.MediaPlay(
|
||||
uri_video,
|
||||
"",
|
||||
"video/mp4",
|
||||
@@ -4688,7 +4682,7 @@ HotelTV.ui_appfull = (function() {
|
||||
{
|
||||
if (_state.media.playing == true) {
|
||||
_state.media.playing = false;
|
||||
HotelTV.hcap.MediaStop(
|
||||
HotelTV.hal.MediaStop(
|
||||
function() {
|
||||
$('.main .mypage .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||
$('.main .mypage .slider').animate({top:864, left:0}, 1000, function(){
|
||||
@@ -4857,7 +4851,7 @@ HotelTV.ui_appfull = (function() {
|
||||
} else if (_tvChInfo.type == "encoder") {
|
||||
// ENCODER
|
||||
}
|
||||
HotelTV.hcap.ChannelSetup(_tvChInfo.type, _chReqParam);
|
||||
HotelTV.hal.ChannelSetup(_tvChInfo.type, _chReqParam);
|
||||
|
||||
//TODO: 아래 실제 채널 셋업 부분 주석처리 되어 있는데, IP와 RF모두 처리 할 수 있도록 구현할것
|
||||
//let _uri_stream = _tvChInfo.url.split('://@')[1];
|
||||
@@ -4865,7 +4859,7 @@ HotelTV.ui_appfull = (function() {
|
||||
//let _uri_ip = _uri_stream.split(':')[0];
|
||||
//let _uri_port = _uri_stream.split(':')[1];
|
||||
//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 _major = Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
// 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([{
|
||||
@@ -5682,7 +5676,7 @@ HotelTV.ui_appfull = (function() {
|
||||
$('.main').animate({ top: -1080, left: 0 }, 1000, () => {
|
||||
$('.main .ctzgen').hide();
|
||||
_state.media.playing = false;
|
||||
HotelTV.hcap.MediaStop(null, null);
|
||||
HotelTV.hal.MediaStop(null, null);
|
||||
|
||||
$('#lst_ctzgenbg').off('refresh.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) {
|
||||
let uri_video = $($('.main .ctzgen .bg .owl-carousel .owl-item.active .ctz_mv_ctrl')[0]).attr('video_url');
|
||||
if (uri_video != null) {
|
||||
HotelTV.hcap.MediaPlay(
|
||||
HotelTV.hal.MediaPlay(
|
||||
uri_video,
|
||||
"",
|
||||
"video/mp4",
|
||||
@@ -5718,7 +5712,7 @@ HotelTV.ui_appfull = (function() {
|
||||
} else if (event.keyCode == gRmtKey.stop) {
|
||||
if (_state.media.playing == true) {
|
||||
_state.media.playing = false;
|
||||
HotelTV.hcap.MediaStop(
|
||||
HotelTV.hal.MediaStop(
|
||||
function() {
|
||||
$('.main .ctzgen .bg .owl-carousel .owl-stage-outer .owl-stage .owl-item').removeClass('movieplay');
|
||||
$('.owl-theme .owl-nav.disabled+.owl-dots').fadeIn(1000);
|
||||
@@ -5788,7 +5782,7 @@ HotelTV.ui_appfull = (function() {
|
||||
|
||||
const __ifxn_exitTvMenu = function() {
|
||||
// 현재 재생중인 TV채널 종료
|
||||
HotelTV.hcap.ChannelShutDown();
|
||||
HotelTV.hal.ChannelShutDown();
|
||||
|
||||
if (_hndl_tmrTvChnMngr != null) {
|
||||
clearInterval(_hndl_tmrTvChnMngr);
|
||||
@@ -6185,7 +6179,7 @@ HotelTV.ui_appfull = (function() {
|
||||
try {
|
||||
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 )
|
||||
@@ -6197,10 +6191,10 @@ HotelTV.ui_appfull = (function() {
|
||||
}
|
||||
}
|
||||
if ( found_dev_locale==true ){
|
||||
HotelTV.hcap.SetDeviceLocale(_nextLang);
|
||||
HotelTV.hal.SetDeviceLocale(_nextLang);
|
||||
}else{
|
||||
console.log("Set Default device locale set to en-US");
|
||||
HotelTV.hcap.SetDeviceLocale('en-US');
|
||||
HotelTV.hal.SetDeviceLocale('en-US');
|
||||
}
|
||||
|
||||
let _usrDataJson = {
|
||||
@@ -7012,7 +7006,7 @@ HotelTV.ui_appfull = (function() {
|
||||
// 현재 재생중인 TV채널 종료
|
||||
if ( _state.tv.playing == true ){
|
||||
console.warn("Try to channel shutdown..");
|
||||
HotelTV.hcap.ChannelShutDown();
|
||||
HotelTV.hal.ChannelShutDown();
|
||||
_state.tv.playing = false;
|
||||
}
|
||||
|
||||
@@ -7047,12 +7041,12 @@ HotelTV.ui_appfull = (function() {
|
||||
console.log("Preparing TV APP::>" + _program[Number(_state.menu.main.cur)].service);
|
||||
if (_program[Number(_state.menu.main.cur)].service == "youtube") {
|
||||
// console.log(`Type:${_program[Number(_state.menu.main.cur)].type} preparing WIFI AP...`);
|
||||
// HotelTV.hcap.SetSoftAp({
|
||||
// HotelTV.hal.SetSoftAp({
|
||||
// "enable": true,
|
||||
// "ssid": "TVWIFI-" + HotelTV.guestinfo.room,
|
||||
// "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") {
|
||||
let _foundNetflix = false;
|
||||
for (_i = 0; _i < _state['hcap_app'].length; _i++) {
|
||||
@@ -7062,12 +7056,12 @@ HotelTV.ui_appfull = (function() {
|
||||
}
|
||||
|
||||
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 {
|
||||
HotelTV.ui_utils.ShowNotificationMsgBalloon(_trTbl.system.ott_service_not_ready[_state.lang], 5);
|
||||
}
|
||||
} 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") {
|
||||
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...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
setTimeout(HotelTV.hal.Reboot, 500);
|
||||
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...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
setTimeout(HotelTV.hal.Reboot, 500);
|
||||
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...`);
|
||||
},
|
||||
"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}])
|
||||
}
|
||||
});
|
||||
@@ -7624,7 +7618,7 @@ HotelTV.ui_appfull = (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}])
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user