本文整理汇总了PHP中Monitor::StreamReplayBuffer方法的典型用法代码示例。如果您正苦于以下问题:PHP Monitor::StreamReplayBuffer方法的具体用法?PHP Monitor::StreamReplayBuffer怎么用?PHP Monitor::StreamReplayBuffer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Monitor
的用法示例。
在下文中一共展示了Monitor::StreamReplayBuffer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: canView
} else {
$showControls = canView('Control') && $monitor->DefaultView() == 'Control';
}
$showPtzControls = ZM_OPT_CONTROL && $monitor->Controllable() && canView('Control');
if (isset($_REQUEST['scale'])) {
$scale = validInt($_REQUEST['scale']);
} else {
$scale = reScale(SCALE_BASE, $monitor->DefaultScale, ZM_WEB_DEFAULT_SCALE);
}
$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();