35 lines
954 B
PHP
35 lines
954 B
PHP
<?php
|
|
|
|
/** @var yii\web\View $this */
|
|
use yii\helpers\Url;
|
|
|
|
$this->title = 'Архив, запись #'.$id;
|
|
$source = Url::to(['camera/stream-event', 'camera_id' => $camera_id, 'event_id' => $id]);
|
|
?>
|
|
<div class="site-index">
|
|
<div class="body-content">
|
|
<div class="row">
|
|
<?= $event->start_time; ?>— <?= $event->end_time; ?>
|
|
</div>
|
|
<div class="row">
|
|
<video
|
|
id="my-video"
|
|
class="video-js"
|
|
width="1920"
|
|
height="1080"
|
|
data-setup='{"controls": true, "fluid": false, "autoplay": true, "preload": "auto", "playbackRates": [ 0,0.25,0.5,1,2,5,10,16]}'
|
|
src="<?= $source; ?>"
|
|
>
|
|
<source src="<?= $source; ?>" type="video/mp4">
|
|
<p class="vjs-no-js">
|
|
To view this video please enable JavaScript, and consider upgrading to a
|
|
web browser that
|
|
<a href="https://videojs.com/html5-video-support/" target="_blank"
|
|
>supports HTML5 video</a
|
|
>
|
|
</p>
|
|
</video>
|
|
</div>
|
|
</div>
|
|
</div>
|