Ensure rate is an integer when coming from cookie. Remove commented out rate display.

pull/3466/head
Isaac Connor 2022-04-11 09:43:45 -04:00
parent a58111fa46
commit 43fbd7d709
1 changed files with 2 additions and 3 deletions

View File

@ -39,10 +39,10 @@ if (!$monitor->canView()) {
}
zm_session_start();
if (isset($_REQUEST['rate']) ) {
if (isset($_REQUEST['rate'])) {
$rate = validInt($_REQUEST['rate']);
} else if (isset($_COOKIE['zmEventRate'])) {
$rate = $_COOKIE['zmEventRate'];
$rate = validInt($_COOKIE['zmEventRate']);
} else {
$rate = reScale(RATE_BASE, $monitor->DefaultRate(), ZM_WEB_DEFAULT_RATE);
}
@ -293,7 +293,6 @@ if ( (ZM_WEB_STREAM_METHOD == 'mpeg') && ZM_MPEG_LIVE_FORMAT ) {
#rates are defined in skins/classic/includes/config.php
echo htmlSelect('rate', $rates, intval($rate), array('id'=>'rateValue'));
?>
<!--<span id="rateValue"><?php echo $rate/100 ?></span>x</span>-->
<span id="progress"><?php echo translate('Progress') ?>: <span id="progressValue">0</span>s</span>
<span id="zoom"><?php echo translate('Zoom') ?>: <span id="zoomValue">1</span>x</span>
</div>