// // Import constants // var CMD_NONE = ; var CMD_PAUSE = ; var CMD_PLAY = ; var CMD_STOP = ; var CMD_FASTFWD = ; var CMD_SLOWFWD = ; var CMD_SLOWREV = ; var CMD_FASTREV = ; var CMD_ZOOMIN = ; var CMD_ZOOMOUT = ; var CMD_PAN = ; var CMD_SCALE = ; var CMD_PREV = ; var CMD_NEXT = ; var CMD_SEEK = ; var CMD_QUERY = ; var CMD_MAXFPS = ; var SOUND_ON_ALARM = ; var POPUP_ON_ALARM = ; var LIST_THUMBS = ; var streamMode = ""; var showMode = ""; var cycle = ; var connKey = ''; var maxDisplayEvents = ; var monitorId = Id() ?>; var monitorWidth = ViewWidth() ?>; var monitorHeight = ViewHeight() ?>; var monitorUrl = 'UrlToIndex() ?>'; var monitorType = 'Type() ?>'; var monitorRefresh = 'Refresh() ?>'; var monitorStreamReplayBuffer = StreamReplayBuffer() ?>; var monitorControllable = Controllable()?'true':'false' ?>; var monIdx = ; var nextMid = ""; var mode = ""; var monitorData = new Array(); monitorData[monitorData.length] = { 'id': Id() ?>, 'width': ViewWidth() ?>, 'height':ViewHeight() ?>, 'janusEnabled':JanusEnabled() ?>, 'url': 'UrlToIndex() ?>', 'onclick': function(){window.location.assign( '?view=watch&mid=Id() ?>' );}, 'type': 'Type() ?>', 'refresh': 'Refresh() ?>' }; var SCALE_BASE = ; var scale = ''; var statusRefreshTimeout = ; var eventsRefreshTimeout = ; var imageRefreshTimeout = ; var canStreamNative = ; var imageControlMode = 'Control(); if ($control->CanMoveMap()) { echo 'moveMap'; } else if ($control->CanMoveRel()) { echo 'movePseudoMap'; } else if ($control->CanMoveCon()) { echo 'moveConMap'; } ?>'; var refreshApplet = ; var appletRefreshTime = ; 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": "", };