This commit is contained in:
@@ -147,8 +147,8 @@ HotelTV.ui_welcome = (function() {
|
||||
*/
|
||||
function __uifxn_WC_OnNetEvt(_evt) {
|
||||
let _state = HotelTV.state;
|
||||
console.log("network_event_received = " + _evt.eventType);
|
||||
let _typeNetEvt = _evt.eventType;
|
||||
console.log("network_event_received = " + _evt['eventType']);
|
||||
let _typeNetEvt = _evt['eventType'];
|
||||
|
||||
switch (_typeNetEvt) {
|
||||
case hcap.network.NetworkEventType.ABLE_REACH_DNS:
|
||||
@@ -385,13 +385,13 @@ HotelTV.ui_welcome = (function() {
|
||||
}
|
||||
}
|
||||
} else if (_state.menu.stage.cur == "playWelcomeMovie") {
|
||||
if (_evt.keyCode == 413) {
|
||||
if (_evt.keyCode == gRmtKey.stop) {
|
||||
// STOP KEY Event
|
||||
if (_media_status == 'playing') {
|
||||
_media_status = 'preparing_stop_playing';
|
||||
var _evt = new Event('media_event_received');
|
||||
_evt.eventType = "play_end_need_destory";
|
||||
_evt.command_id = "event";
|
||||
_evt['command_id'] = "media_ctrl_event";
|
||||
_evt['eventType'] = "play_end_need_destory";
|
||||
document.dispatchEvent(_evt);
|
||||
}
|
||||
} else {
|
||||
@@ -404,7 +404,7 @@ HotelTV.ui_welcome = (function() {
|
||||
}, 3000);
|
||||
} else {
|
||||
const _evt = new Event('media_event_received');
|
||||
_evt['command_id'] = "media_event_received";
|
||||
_evt['command_id'] = "media_ctrl_event";
|
||||
_evt['eventType'] = "play_stop_requtested";
|
||||
document.dispatchEvent(_evt);
|
||||
}
|
||||
@@ -479,7 +479,7 @@ 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.PwrOff, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
@@ -504,7 +504,7 @@ 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.PwrOff, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
@@ -529,7 +529,7 @@ 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.PwrOff, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user