rhyslees / nova-audio
A Laravel Nova field.
Installs: 1 078
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
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)