@php $audioUrl = route('videos.stream', $video); $coverUrl = $video->thumbnail ? route('media.thumbnail', $video->thumbnail) : asset('storage/images/logo.png'); $nextUrl = isset($nextVideo, $playlist) ? route('videos.show', $nextVideo).'?playlist='.$playlist->share_token : null; $prevUrl = isset($previousVideo, $playlist) ? route('videos.show', $previousVideo).'?playlist='.$playlist->share_token : null; $slideUrls = $video->slides->count() > 1 ? $video->slides->map(fn($s) => route('media.thumbnail', $s->filename))->values()->all() : []; @endphp
{{-- Cover art / slideshow --}} @if(count($slideUrls) > 1)
@else {{ $video->title }} @endif {{-- Bars canvas overlay --}} {{-- Gradient --}}
{{-- Large play overlay --}}
{{-- Controls --}}
@if(isset($previousVideo) && $prevUrl) @endif @if(isset($nextVideo) && $nextUrl) @endif
0:00 / 0:00
Playback speed Normal
Playback speed
@foreach([['0.25','0.25'],['0.5','0.5'],['0.75','0.75'],['1','Normal'],['1.25','1.25'],['1.5','1.5'],['1.75','1.75'],['2','2']] as [$val,$label])
{{ $label }}
@endforeach
{{-- Loop toggle --}}
Loop Off
{{-- Bars visualiser toggle --}}
{{-- Hidden audio element --}} {{-- ══ CSS ══ --}} {{-- ══ JS ══ --}}