// // 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() ?>', Name: 'Name() ?>', MonitorId: 'MonitorId() ?>', MonitorName: 'Name()) ?>', Cause: 'Cause()) ?>', Width: 'Width() ?>', Height: 'Height() ?>', Length: 'Length() ?>', StartDateTime: 'StartDateTime() ?>', StartDateTimeFmt: '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()) : '' ) ?>', ArchivedStr: 'Archived ? translate('Yes') : translate('No') ?>', EmailedStr: 'Emailed ? translate('Yes') : translate('No') ?>', Archived: Archived?'true':'false' ?>, Emailed: Emailed?'true':'false' ?> }; var eventDataStrings = { Id: '', Name: '', MonitorId: '', MonitorName: '', Cause: '', StartDateTimeFmt: '', Length: '', Frames: '', AlarmFrames: '', TotScore: '', AvgScore: '', MaxScore: '', DiskSpace: '', Storage: '', ArchivedStr: '', EmailedStr: '' }; 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 WEB_LIST_THUMB_WIDTH = ''; var WEB_LIST_THUMB_HEIGHT = ''; var popup = '';