承接 illmy/media-player 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

illmy/media-player

最新稳定版本:v1.3

Composer 安装命令:

composer require illmy/media-player

包简介

Intergrates mediaelement into laravel-admin

README 文档

README

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

中文介绍

Screenshots

wx20181114-010912

wx20181114-011037

Installation

composer require illmy/media-player

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

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 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]);

License

Licensed under The MIT License (MIT).

统计信息

  • 总下载量: 3.32k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 10
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-14