rhyslees/nova-audio

This package is abandoned and no longer maintained. No replacement package was suggested.

A Laravel Nova field.

Installs: 1 078

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Language:Vue

3.0.0 2023-02-15 00:06 UTC

This package is auto-updated.

Last update: 2023-04-15 00:29:35 UTC


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)