hugomyb/filament-media-action
Filament action to preview media (video, audio, PDF, images, etc.) anywhere in your app (forms, tables, infolists, prefix/suffix). Just pass a media URL and it auto-detects the extension to render the right player/viewer.
Call to a member function makeGetUtility() on null error when using $get (or $set) as a parameter in the ->media() closure when the action is not attached to a schema component (e.g. header actions, table row actions, page actions).$get and $set work as expected.$get and $set are now safely null instead of throwing — your closure can guard against it (e.g. if ($get) { ... }).MediaAction::make('media-url')
->media(fn ($get, $record) => $get
? $get('media_url')
: $record->url
)
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v5.0.0.0...v5.0.0.1
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v4.1.0.2...v5.0.0.0
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v4.1.0.1...v4.1.0.2
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v4.1.0.0...v4.1.0.1
Media type constants on MediaAction:
Recommended to use constants with mediaType() for clarity and safety
Strings remain supported for backward compatibility
Forcing the media type (e.g., ->mediaType('audio')) could leave the player stuck on “loading”:
Avoids evaluating closures that require Livewire context when a type is already forced
->mediaType('audio') → ->mediaType(MediaAction::TYPE_AUDIO)use Hugomyb\FilamentMediaAction\Actions\MediaAction;
MediaAction::make('video')
->media('https://myapp.test/video.MOV')
->mediaType(MediaAction::TYPE_VIDEO);
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v4.0.0.0...v4.1.0.0
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.1.9...v4.0.0.0
MediaAction::make('video')
->media('https://myapp.test/video.MOV')
->mediaType('video') // Force video type
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.1.7...v3.1.1.8
evaluate()record, model, arguments, data, livewire).evaluate() now automatically receive all available dependencies.resolveDefaultClosureDependencyForEvaluationByName().evaluate().Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.1.5...v3.1.1.6
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.1.4...v3.1.1.5
<video>, <audio>, <img>, and <iframe> elements.This release enhances the user experience by providing a reliable loading indicator for all supported media formats in the Filament Media Viewer package.
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.1.3...v3.1.1.4
<video> and <audio> elements to prevent errors when unsupported methods like .load() are called..load() is only invoked on compatible media elements.<img> and iframes.This release ensures a smoother user experience and greater compatibility for diverse media formats in the Filament Media Viewer package.
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.1.1...v3.1.1.2
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.1.0...v3.1.1.1
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.0.8...v3.1.1.0
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.0.8...v3.1.0.9
Implemented a media autoplay feature that automatically plays embedded audio, video, and YouTube media when the modal is opened. This feature adds the ->autoplay() method.
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.0.7...v3.1.0.8
Add default value to $mime to prevent "MediaAction::$mime must not be accessed before initialization"
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.0.6...main
Enhanced the mime type detection of complex media url
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.0.5...main
Fixed "Unsupported media type" if the media url has no extension, checking the Content-Type header
Full Changelog: https://github.com/hugomyb/filament-media-action/compare/v3.1.0.4...main
Fixed error message "Unsupported media", if the media url contains query parameters
Fixes :
How can I help you explore Laravel packages today?