luria/laravel-media-player

Laravel component to add simple audio/video player.

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:CSS

Type:project

dev-main 2024-09-20 16:35 UTC

This package is auto-updated.

Last update: 2025-05-20 18:23:21 UTC


README

IN DEVELPOMNET STAGE. DO NOT USE. IT WILL NOT WORK

Laravel Media Player

Laravel component HTML5 simple audio/video player.

Installation

composer require luria/laravel-media-player

php artisan vendor:publish --tag=public --force

Add the JS and CSS to your template:

<link rel="stylesheet" href="<?php echo asset('vendor/luria/css/laravelMediaPlayer.css')?>" type="text/css">
<script src="<?php echo asset('vendor/luria/js/laravelMediaPlayer.js')?>"></script>

Call the component, e.g.

<x-laravel-media-player
    mediaUrl="mysong.mp3"
    mediaType="audio"
    coverUrl="mySongCover.jpg"
    mediaId="1"
    mediaTitle="I like beer!!"
    mediaDate="20th Jan 2024"
/>

mediaUrl and mediaType are the only mandatory attribute.