{"id":13532695,"url":"https://github.com/laravel-admin-extensions/media-player","last_synced_at":"2025-04-28T15:31:54.981Z","repository":{"id":57011865,"uuid":"157417328","full_name":"laravel-admin-extensions/media-player","owner":"laravel-admin-extensions","description":"Play audio/videos in laravel-admin","archived":false,"fork":false,"pushed_at":"2020-03-19T03:41:40.000Z","size":978,"stargazers_count":31,"open_issues_count":9,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T21:12:36.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laravel-admin-extensions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-13T17:11:55.000Z","updated_at":"2024-03-04T07:24:41.000Z","dependencies_parsed_at":"2022-08-21T13:40:47.399Z","dependency_job_id":null,"html_url":"https://github.com/laravel-admin-extensions/media-player","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-admin-extensions%2Fmedia-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-admin-extensions%2Fmedia-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-admin-extensions%2Fmedia-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-admin-extensions%2Fmedia-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laravel-admin-extensions","download_url":"https://codeload.github.com/laravel-admin-extensions/media-player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251338706,"owners_count":21573599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:01:12.966Z","updated_at":"2025-04-28T15:31:49.954Z","avatar_url":"https://github.com/laravel-admin-extensions.png","language":"JavaScript","funding_links":[],"categories":["扩展包"],"sub_categories":["网格类扩展包"],"readme":"laravel-admin Media player\n======\n\nThis extension allows you to play video or audio on grid pages and show pages with the help of [mediaelement](https://github.com/mediaelement/mediaelement).\n\n[中文介绍](https://laravel-admin.org/posts/21)\n\n## Screenshots\n\n![wx20181114-010912](https://user-images.githubusercontent.com/1479100/48430450-4ef5fa80-e7aa-11e8-8fcd-1f5717b0d3d6.png)\n\n![wx20181114-011037](https://user-images.githubusercontent.com/1479100/48430451-4ef5fa80-e7aa-11e8-8394-38ed2c6c75ba.png)\n\n## Installation\n\n```bash\ncomposer require laravel-admin-ext/media-player\n\nphp artisan vendor:publish --tag=laravel-admin-media-player\n```\n\n## Usage\n\nIf 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.\n\nIn the grid page:\n```php\n// Add a play button to the current field column. After clicking it will open a modal to play the video file.\n$grid-\u003efoo()-\u003evideo();\n\n// Add an audio player to the current field column\n$grid-\u003efoo()-\u003eaudio();\n```\nIn show page:\n```php\n// This field will be displayed as a video player\n$show-\u003efoo()-\u003evideo();\n\n// this field will be displayed as an audio player\n$show-\u003efoo()-\u003eaudio();\n```\n\nIf the field `foo` is another path or a file path under another server, you can use the following settings.\n\n```php\n$grid-\u003efoo()-\u003evideo(['server' =\u003e 'http:www.foo.com/']);\n```\n\nThis 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.\n\nFor example, set the size of the player:\n\n```php\n$grid-\u003efoo()-\u003evideo(['videoWidth' =\u003e 720, 'videoHeight' =\u003e 480]);\n```\n\n## Donate\n\nIf you feel that this project has saved you time, you may wish to support it ;)\n\n![-1](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)\n\nLicense\n------------\nLicensed under [The MIT License (MIT)](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-admin-extensions%2Fmedia-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaravel-admin-extensions%2Fmedia-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-admin-extensions%2Fmedia-player/lists"}