// // Import constants // var CMD_NONE = ; var CMD_PAUSE = ; var CMD_PLAY = ; var CMD_VARPLAY = ; 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 SCALE_BASE = ; // // PHP variables to JS // var connKey = ''; var eventData = { Id() ) { ?> Id: 'Id() ?>', Name: 'Name() ?>', MonitorId: 'MonitorId() ?>', MonitorName: 'Name()) ?>', Cause: 'Cause()) ?>', Notes: 'Notes()?>', Width: 'Width() ?>', Height: 'Height() ?>', Length: 'Length() ?>', StartDateTime: 'StartDateTime() ?>', StartDateTimeShort: 'StartDateTime())) ?>', EndDateTime: 'EndDateTime() ?>', Frames: 'Frames() ?>', AlarmFrames: 'AlarmFrames() ?>', TotScore: 'TotScore() ?>', AvgScore: 'AvgScore() ?>', MaxScore: 'MaxScore() ?>', DiskSpace: 'DiskSpace(null)) ?>', Storage: 'Storage()->Name()).( $Event->SecondaryStorageId() ? ', '.validHtmlStr($Event->SecondaryStorage()->Name()) : '' ) ?>', Archived: Archived?'true':'false' ?>, Emailed: Emailed?'true':'false' ?> }; var yesStr = ''; var noStr = ''; var eventDataStrings = { Id: '', Name: '', MonitorId: '', MonitorName: '', Cause: '', Notes: '', StartDateTimeShort: '', Length: '', Frames: '', AlarmFrames: '', TotScore: '', AvgScore: '', MaxScore: '', DiskSpace: '', Storage: '', Archived: '', Emailed: '' }; var monitorUrl = 'Storage()->Server()->UrlToIndex(); ?>'; var filterQuery = ''; var sortQuery = ''; var rates = ; var rate = ''; // really only used when setting up initial playback rate. var scale = ""; var LabelFormat = "LabelFormat())?>"; var streamTimeout = ; var canStreamNative = ; var streamMode = ''; // // Strings // var deleteString = ""; var causeString = ""; var showZonesString = ""; var hideZonesString = ""; var WEB_LIST_THUMB_WIDTH = ''; var WEB_LIST_THUMB_HEIGHT = ''; var popup = '';