Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brunoimbrizi/tweakpane-plugin-audio-player

A mini audio player for Tweakpane.
https://github.com/brunoimbrizi/tweakpane-plugin-audio-player

audio-player tweakpane tweakpane-plugin

Last synced: 21 days ago
JSON representation

A mini audio player for Tweakpane.

Awesome Lists containing this project

README

        

# Tweakpane plugin audio player
A mini audio player for [Tweakpane][tweakpane]. Sometimes you just want all of your UI in one place.

![tweakpane-plugin-audio-player-title](https://github.com/brunoimbrizi/tweakpane-plugin-audio-player/assets/880280/09c51ecb-869e-4650-9f78-74e6b1cedce5)

## Demo

[Plugin demo on StackBlitz](https://stackblitz.com/edit/js-cgprrp)

## Installation

### Browser
```html

const pane = new Tweakpane.Pane();
pane.registerPlugin(TweakpaneAudioPlayerPlugin);

```

### Package
```js

import {Pane} from 'tweakpane';
import * as AudioPlayerPlugin from 'tweakpane-plugin-audio-player';

const pane = new Pane();
pane.registerPlugin(AudioPlayerPlugin);
```

## Usage
```js
const audioBlade = pane.addBlade({
view: 'audio-player',
label: 'track',
source: 'drum-intro.mp3'
});

// access the element directly
// audioBlade.audio
```

[tweakpane]: https://github.com/cocopon/tweakpane/