Play audio/videos in laravel-admin
Clone or download
Latest commit 3d4125a Nov 13, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources/assets/build first commit Nov 13, 2018
src first commit Nov 13, 2018
.gitignore first commit Nov 13, 2018
LICENSE first commit Nov 13, 2018 Update Nov 14, 2018
composer.json first commit Nov 13, 2018

laravel-admin Media player

This extension allows you to play video or audio on grid pages and show pages with the help of mediaelement.






composer require laravel-admin-ext/media-player

php artisan vendor:publish --tag=laravel-admin-media-player


If you have a field foo that stores the full url of the audio/video file, or the path under the disk configured by admin.upload.disk, you can use it in the following way.

In the grid page:

// Add a play button to the current field column. After clicking it will open a modal to play the video file.

// Add an audio player to the current field column

In show page:

// This field will be displayed as a video player

// this field will be displayed as an audio player

If the field foo is another path or a file path under another server, you can use the following settings.

$grid->foo()->video(['server' => '']);

This player feature of this extension is based on mediaelement and can be referenced API and Configuration Add more settings to the player.

For example, set the size of the player:

$grid->foo()->video(['videoWidth' => 720, 'videoHeight' => 480]);


If you feel that this project has saved you time, you may wish to support it ;)



Licensed under The MIT License (MIT).