Change embed file directory

This commit is contained in:
Ben Goldsworthy 2022-11-28 16:02:22 -06:00
parent df6b311cc4
commit 9a80b94e18
3 changed files with 6 additions and 4 deletions

View file

@ -9,12 +9,12 @@
@if(preg_match("/\[\[([^\]]+)\]\]/", $checkin->note, $filepath))
@if(preg_match("/\.webm/", $filepath[1]))
<video controls>
<source src="/{{ $filepath[1] }}" type="video/webm">
<source src="/video/{{ $filepath[1] }}" type="video/webm">
<p>Your browser doesn't support HTML video. Here is a <a href="/{{ $filepath[1] }}">link to the video</a> instead.</p>
</video>
@elseif(preg_match("/\.ogg/", $filepath[1]))
<audio controls>
<source src="/{{ $filepath[1] }}" type="audio/off">
<source src="/audio/{{ $filepath[1] }}" type="audio/ogg">
<p>Download <a href="/{{ $filepath[1] }}">OGG</a> audio.</p>
</audio>
@endif