} $connkey = generateConnKey(); if (ZM_WEB_STREAM_METHOD == 'mpeg' && ZM_MPEG_LIVE_FORMAT) { $streamMode = "mpeg"; $streamSrc = $monitor->getStreamSrc(array("mode=" . $streamMode, "scale=" . $scale, "bitrate=" . ZM_WEB_VIDEO_BITRATE, "maxfps=" . ZM_WEB_VIDEO_MAXFPS, "format=" . ZM_MPEG_LIVE_FORMAT)); } elseif (canStream()) { $streamMode = "jpeg"; $streamSrc = $monitor->getStreamSrc(array("mode=" . $streamMode, "scale=" . $scale, "maxfps=" . ZM_WEB_VIDEO_MAXFPS, "buffer=" . $monitor->StreamReplayBuffer())); } else { $streamMode = "single"; $streamSrc = $monitor->getStreamSrc(array("mode=" . $streamMode, "scale=" . $scale)); Info("The system has fallen back to single jpeg mode for streaming. Consider enabling Cambozola or upgrading the client browser."); } $showDvrControls = $streamMode == 'jpeg' && $monitor->StreamReplayBuffer() != 0; noCacheHeaders(); xhtmlHeaders(__FILE__, $monitor->Name() . " - " . translate('Feed')); ?> <body> <div id="page"> <div id="content"> <div id="menuBar"> <div id="monitorName"><?php echo $monitor->Name(); ?> </div> <div id="closeControl"><a href="#" onclick="closeWindow(); return( false );"><?php echo translate('Close'); ?> </a></div> <div id="menuControls"> <?php
ksort($newZone['Points'], SORT_NUMERIC); $newZone['Coords'] = pointsToCoords($newZone['Points']); $newZone['Area'] = getPolyArea($newZone['Points']); $selfIntersecting = isSelfIntersecting($newZone['Points']); $focusWindow = true; $connkey = generateConnKey(); xhtmlHeaders(__FILE__, translate('Zone')); ?> <body> <div id="page"> <div id="header"> <h2><?php echo translate('Monitor'); ?> <?php echo $monitor->Name(); ?> - <?php echo translate('Zone'); ?> <?php echo $newZone['Name']; ?> </h2> </div> <div id="content"> <form name="zoneForm" id="zoneForm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <input type="hidden" name="view" value="<?php