{{-- Video Viewer Component with error handling Variables: - $url: The URL of the video file - $item: The FileSystemItem model (optional) --}} @php $url = $url ?? null; $item = $item ?? null; // Create a unique key to force Alpine re-initialization when URL changes $viewerKey = 'vid-' . md5($url ?? ''); @endphp
{{-- Loading State --}}
Loading video...
{{-- Error State --}}

Video unavailable

This video could not be loaded. It may be inaccessible or the URL has expired.

@if($url) Download Video @endif
{{-- Video Player --}}