PHP code example of hugomyb / filament-media-action
1. Go to this page and download the library: Download hugomyb/filament-media-action library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
MediaAction::make('media-url')
->media(fn($record) => $record->url)
->disableDownload() // Prevents the user from downloading the media
->disableFullscreen() // Prevents the user from viewing the video in fullscreen
->disableRemotePlayback() // Prevents the user from using remote playback (e.g., Chromecast)