Commit initial

This commit is contained in:
2020-05-15 12:27:34 +02:00
commit 70f72f2e54
87 changed files with 12684 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<h1>Site web Projet L3</h1>
<form method="get" action="default">
<button type="submit">Retour</button>
</form>
<form method="get" action="connexion/disconnect">
<button type="submit">Deconnexion</button>
</form>
<?php foreach($videos as $i => $video): ?>
<h5>Du <?=$video["begin"]?> au <?=$video["end"]?></h5>
<div id="rtmp-player-container-<?=$i?>"></div>
<script>
jwplayer("rtmp-player-container-<?=$i?>").setup({
file: "<?=$video['path']?>",
preload: false
});
</script>
<?php endforeach; ?>

View File

@ -0,0 +1,37 @@
<h1>Site web Projet L3</h1>
<form method="get" action="default">
<button type="submit">Retour</button>
</form>
<form method="get" action="connexion/disconnect">
<button type="submit">Deconnexion</button>
</form>
<form method="post" action="camera/swapState/<?=$this->clean($camera->getId())?>">
<h2>Caméra : <?= $this->clean($camera->getName())?></h2>
<?php if($this->clean($camera->getAvailable()) == true):?> Joignable -
<?php else: ?> Non joignable -
<?php endif ?>
<?php if($this->clean($camera->getEnabled()) == true):?> Activée <button type="submit">Désactiver</button>
<?php $swap = "disable";?>
<?php else: ?> Désactivée <button type="submit">Activer</button>
<?php $swap = "enable";?>
<?php endif ?>
<a href="camera/delayed/<?=$this->clean($camera->getId())?>"><button type="button">Regarder le différé</button></a>
<input type="hidden" name="whereController" value="camera">
<input type="hidden" name="whereAction" value="index/<?=$this->clean($camera->getId())?>">
<input type="hidden" name="swap" value="<?=$swap?>">
</form>
<br>
<div id="rtmp-player-container"></div>
<script>
jwplayer("rtmp-player-container").setup({
file: "rtmp://<?=Configuration::get('host')?>:1935/livecam/<?=$this->clean($camera->getId())?>?login=<?=$this->clean($user->getLogin())?>&password=<?=$this->clean($user->getPassword())?>",
controls: false,
autostart: true,
preload: "none"
});
</script>