mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-20 05:34:12 -04:00
can't use BASE_URL since it will be empty. Have to construct a full URL when using MIN_STREAMING_PORT
This commit is contained in:
1 parent
8b49a475d4
commit
e617ffca2d
1 file changed
+4
-2
@@ -185,11 +185,13 @@ private $control_fields = array(
|
||||
}
|
||||
|
||||
public function getStreamSrc( $args, $querySep='&' ) {
|
||||
|
||||
$streamSrc = ZM_BASE_PROTOCOL.'://';
|
||||
if ( isset($this->{'ServerId'}) and $this->{'ServerId'} ) {
|
||||
$Server = new Server( $this->{'ServerId'} );
|
||||
$streamSrc = ZM_BASE_PROTOCOL.'://'.$Server->Hostname();
|
||||
$streamSrc .= $Server->Hostname();
|
||||
} else {
|
||||
$streamSrc = ZM_BASE_URL;
|
||||
$streamSrc .= $_SERVER['HTTP_HOST'] );
|
||||
}
|
||||
if ( ZM_MIN_STREAMING_PORT )
|
||||
$streamSrc .= ':'. (ZM_MIN_STREAMING_PORT+$this->{'Id'});
|
||||
|
||||
Reference in new issue
Block a user