Skip to content

Commit

Permalink
Fix: Specify 'mode'=>'mp4' for getStreamSrc() Otherwise video.js some…
Browse files Browse the repository at this point in the history
…times cannot determine that it is a file recording that is being played, and not a direct viewing. (event.php)
  • Loading branch information
IgorA100 authored Oct 8, 2024
1 parent a0a95d8 commit fb19016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/skins/classic/views/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
function($r){return $r >= 0 ? true : false;}
))) ?>], "plugins": { "zoomrotate": { "zoom": "<?php echo $Zoom ?>"}}}'
>
<source src="<?php echo $Event->getStreamSrc(array('mode'=>'mpeg','format'=>'h264'),'&amp;'); ?>" type="video/mp4">
<source src="<?php echo $Event->getStreamSrc(array('mode'=>'mp4','format'=>'h264'),'&amp;'); ?>" type="video/mp4">
<track id="monitorCaption" kind="captions" label="English" srclang="en" src='data:plain/text;charset=utf-8,"WEBVTT\n\n 00:00:00.000 --> 00:00:01.000 ZoneMinder"' default/>
Your browser does not support the video tag.
</video>
Expand Down

0 comments on commit fb19016

Please sign in to comment.