fillament does not show preview of videos other than mp4
good afternoon everyone, how are you? I'm using filament to upload videos and then in a blade file, I'm showing the preview of the video in a component, in mp4 it works perfectly, but when I upload other formats such as: avi, wmv, it it uploads, but it doesn't show the preview, has anyone experienced something similar?
I'll leave some snippets of my code below
FileUpload::make('data.video') ->label(trans('bot::task.video')) ->required() ->hidden(fn(\Closure $get) => !in_array($get('type'), ['send-video'])),
@if(data_get($task,'data.video')) {{ __('bot::task.label.data.video') }}video controls src="{{Storage::disk('public')->url(data_get($task->data,'video'))}}" class="rounded w-full">video
'temporary_file_upload' => [ 'disk' => 'local', // Example: 'local', 's3' Default: 'default' 'rules' => ['required', 'file', 'max:20480'], // Example: ['file', 'mimes:png,jpg'] Default: ['required', 'file', 'max:12288'] (12MB) 'directory' => null, // Example: 'tmp' Default 'livewire-tmp' 'middleware' => null, // Example: 'throttle:5,1' Default: 'throttle:60,1' 'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs. 'png', 'gif', 'bmp', 'svg', 'wav', 'mp4', 'mov', 'avi', 'wmv', 'mp3', 'm4a', 'jpg', 'jpeg', 'mpga', 'webp', 'wma', ], 'max_upload_time' => 5, // Max duration (in minutes) before an upload gets invalidated. ],
Please or to participate in this conversation.