rhyslees / nova-audio
This package is abandoned and no longer maintained.
No replacement package was suggested.
A Laravel Nova field.
3.0.0
2023-02-15 00:06 UTC
Requires
- php: ^8.2
- laravel/nova: ^4.22
- nova-kit/nova-packages-tool: ^1.0
- rhyslees/nova-about: ^2.0
Requires (Dev)
- laravel/pint: ^1.5
README
Nova audio is a simple audio player for Nova using HTML5 audio.
Installing
composer require rhyslees/nova-audio
Usage:
use RhysLees\NovaAudio\Audio; public function fields(Request $request) { return [ ... Audio::make('Audio') ->disk('public'), ... ]; }
Nova Audio extends Nova's built-in File Field so you can use the same options the come with Nova's File Field. In addition, Nova Audio has a few extra options:
/** * Preloads the audio for instant playback. */ ->preload($value = 'auto') /** * Instructs the field to autoplay the audio. */ ->autoplay($value = true) /** * Show the playback speed controls for the audio field. */ ->playbackRate($value = true)