// // Import constants // var ZM_DIR_SOUNDS = ""; var POPUP_ON_ALARM = ; var LIST_THUMBS = ; var streamMode = ""; var showMode = ""; var cycle = ; var maxDisplayEvents = ; var monitorId = parseInt('Id() ?>'); var monitorWidth = parseInt('ViewWidth() ?>'); var monitorHeight = parseInt('ViewHeight() ?>'); var monitorUrl = 'UrlToIndex(ZM_MIN_STREAMING_PORT ? ($monitor->Id() + ZM_MIN_STREAMING_PORT) : '') ?>'; var monitorType = 'Type() ?>'; var monitorRefresh = 'Refresh() ?>'; var monitorStreamReplayBuffer = parseInt('StreamReplayBuffer() ?>'); var monitorControllable = Controllable()?'true':'false' ?>; var monIdx = ''; var nextMid = ''; var mode = ''; var monitorData = new Array(); monitorData[monitorData.length] = { 'id': Id() ?>, 'server_id': 'ServerId() ?>', 'connKey': connKey() ?>, 'width': ViewWidth() ?>, 'height':ViewHeight() ?>, 'RTSP2WebEnabled':RTSP2WebEnabled() ?>, 'RTSP2WebType':'RTSP2WebType() ?>', 'janusEnabled':JanusEnabled() ?>, 'url': 'UrlToIndex(ZM_MIN_STREAMING_PORT ? ($m->Id() + ZM_MIN_STREAMING_PORT) : '') ?>', 'onclick': function(){window.location.assign( '?view=watch&mid=Id() ?>' );}, 'type': 'Type() ?>', 'refresh': 'Refresh() ?>', 'janus_pin': 'Janus_Pin() ?>' }; var scale = ''; var statusRefreshTimeout = ; var eventsRefreshTimeout = ; var imageRefreshTimeout = ; var canStream = ; var imageControlMode = 'Control(); if ($control->CanMoveMap()) { echo 'moveMap'; } else if ($control->CanMoveRel()) { echo 'movePseudoMap'; } else if ($control->CanMoveCon()) { echo 'moveConMap'; } ?>'; var labels = new Array(); Id())) as $row) { $label = $labels[$row['Preset']] = $row['Label']; echo 'labels['. validInt($row['Preset']) .'] = \''.validJsStr($label).'\';'.PHP_EOL; } ?> var deleteString = ""; var enableAlarmsStr = ""; var disableAlarmsStr = ""; var forceAlarmStr = ""; var cancelForcedAlarmStr = ""; var translate = { "seconds": "", "Fullscreen": "", "Exit Fullscreen": "", };