fantata / laravel-pod-player
Laravel component to play an audio file, built with podcasts in mind.
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Package info
github.com/fantata/laravel-pod-player
Language:CSS
Type:project
pkg:composer/fantata/laravel-pod-player
0.1
2023-07-05 17:18 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Laravel component HTML5 audio player, built with podcasts in mind.
Adapted from this CSS Tricks tutorial
Installation
composer require fantata/laravel-pod-player php artisan vendor:publish --tag=public --force
Add the JS and CSS to your template:
<link rel="stylesheet" href="<?php echo asset('vendor/fantata/css/audioPlayer.css')?>" type="text/css">
<script src="<?php echo asset('vendor/fantata/js/audioPlayer.js')?>"></script>
And finally, call the component, e.g.
<x-laravel-audio-player audioUrl="audio.mp3" imgUrl="cover.jpg" epId="1" epTitle="Greatest Cheeses of All Time" epDate="20th Jan 2023" showTitle="The Amazing Things Podcast" />
audioUrl is the only required attribute.