PHP code example of laravel-admin-ext / media-player
1. Go to this page and download the library: Download laravel-admin-ext/media-player 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/ */
laravel-admin-ext / media-player example snippets
// Add a play button to the current field column. After clicking it will open a modal to play the video file.
$grid->foo()->video();
// Add an audio player to the current field column
$grid->foo()->audio();
// This field will be displayed as a video player
$show->foo()->video();
// this field will be displayed as an audio player
$show->foo()->audio();
$grid->foo()->video(['server' => 'http:www.foo.com/']);
$grid->foo()->video(['videoWidth' => 720, 'videoHeight' => 480]);