PHPackages                             laravel-admin-ext/media-player - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. laravel-admin-ext/media-player

ActiveLibrary[Image &amp; Media](/categories/media)

laravel-admin-ext/media-player
==============================

Intergrates mediaelement into laravel-admin

v1.1(6y ago)3255.1k↓65.3%8[8 issues](https://github.com/laravel-admin-extensions/media-player/issues)MITJavaScriptPHP &gt;=7.0.0CI failing

Since Nov 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/laravel-admin-extensions/media-player)[ Packagist](https://packagist.org/packages/laravel-admin-ext/media-player)[ Docs](https://github.com/laravel-admin-ext/media-player)[ RSS](/packages/laravel-admin-ext-media-player/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

laravel-admin Media player
==========================

[](#laravel-admin-media-player)

This extension allows you to play video or audio on grid pages and show pages with the help of [mediaelement](https://github.com/mediaelement/mediaelement).

[中文介绍](https://laravel-admin.org/posts/21)

Screenshots
-----------

[](#screenshots)

[![wx20181114-010912](https://user-images.githubusercontent.com/1479100/48430450-4ef5fa80-e7aa-11e8-8fcd-1f5717b0d3d6.png)](https://user-images.githubusercontent.com/1479100/48430450-4ef5fa80-e7aa-11e8-8fcd-1f5717b0d3d6.png)

[![wx20181114-011037](https://user-images.githubusercontent.com/1479100/48430451-4ef5fa80-e7aa-11e8-8394-38ed2c6c75ba.png)](https://user-images.githubusercontent.com/1479100/48430451-4ef5fa80-e7aa-11e8-8394-38ed2c6c75ba.png)

Installation
------------

[](#installation)

```
composer require laravel-admin-ext/media-player

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

Usage
-----

[](#usage)

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.
$grid->foo()->video();

// Add an audio player to the current field column
$grid->foo()->audio();
```

In show page:

```
// This field will be displayed as a video player
$show->foo()->video();

// this field will be displayed as an audio player
$show->foo()->audio();
```

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

```
$grid->foo()->video(['server' => 'http:www.foo.com/']);
```

This player feature of this extension is based on [mediaelement](https://github.com/mediaelement/mediaelement) and can be referenced [API and Configuration](https://github.com/mediaelement/mediaelement/blob/master/docs/api.md) Add more settings to the player.

For example, set the size of the player:

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

Donate
------

[](#donate)

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

[![-1](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)

License
-------

[](#license)

Licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~392 days

Total

2

Last Release

2398d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48536779?v=4)[encore](/maintainers/encore)[@encore](https://github.com/encore)

---

Top Contributors

[![z-song](https://avatars.githubusercontent.com/u/1479100?v=4)](https://github.com/z-song "z-song (4 commits)")

---

Tags

audiovideoextensionlaravel-adminplayer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-admin-ext-media-player/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-admin-ext-media-player/health.svg)](https://phpackages.com/packages/laravel-admin-ext-media-player)
```

###  Alternatives

[happyworm/jplayer

jPlayer allows you to create a media player with a consistent interface and experience across all browsers.

4.6k114.8k1](/packages/happyworm-jplayer)[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

181576.2k17](/packages/dereuromark-media-embed)[buggedcom/phpvideotoolkit

PHPVideoToolkit is a set of classes aimed to provide a modular, object oriented and accessible interface for interacting with videos and audio through the FFmpeg program.

26385.2k1](/packages/buggedcom-phpvideotoolkit)[laravel-admin-ext/cropper

Integrate Cropper into laravel-admin

7235.9k](/packages/laravel-admin-ext-cropper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
