Added RAND_STREAM option
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1240 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
eb86e25a3a
commit
8154e21e58
|
@ -97,6 +97,10 @@ function getStreamSrc( $args )
|
||||||
$args[] = "pass=".$_SESSION['password'];
|
$args[] = "pass=".$_SESSION['password'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ( ZM_RAND_STREAM )
|
||||||
|
{
|
||||||
|
$args[] = "rand=".time();
|
||||||
|
}
|
||||||
|
|
||||||
if ( count($args) )
|
if ( count($args) )
|
||||||
{
|
{
|
||||||
|
|
|
@ -271,6 +271,14 @@ my @options =
|
||||||
type => $types{tristate},
|
type => $types{tristate},
|
||||||
category => 'tools',
|
category => 'tools',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name => "ZM_RAND_STREAM",
|
||||||
|
default => "no",
|
||||||
|
description => "Add a random string to prevent caching of streams",
|
||||||
|
help => "Some browsers can cache the streams used by ZoneMinder. In order to prevent his a harmless random string can be appended to the url to make each invocation of the stream appear unique.",
|
||||||
|
type => $types{boolean},
|
||||||
|
category => 'tools',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name => "ZM_OPT_CAMBOZOLA",
|
name => "ZM_OPT_CAMBOZOLA",
|
||||||
default => "no",
|
default => "no",
|
||||||
|
|
Loading…
Reference in New Issue