mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-04-02 05:06:41 -04:00
Allow viewing a specific video file instead of DefaultVideo
This commit is contained in:
@@ -44,7 +44,11 @@ if ( ! empty($_REQUEST['eid']) ) {
|
||||
$path = $Event->Path().'/'.$Event->DefaultVideo();
|
||||
} else if ( ! empty($_REQUEST['event_id']) ) {
|
||||
$Event = new ZM\Event($_REQUEST['event_id']);
|
||||
$path = $Event->Path().'/'.$Event->DefaultVideo();
|
||||
if (!empty($_REQUEST['file'])) {
|
||||
$path = $Event->Path().'/'.preg_replace('/\//', '', $_REQUEST['file']);
|
||||
} else {
|
||||
$path = $Event->Path().'/'.$Event->DefaultVideo();
|
||||
}
|
||||
} else {
|
||||
$errorText = 'No video path';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user