tweakpane-plugin-audio-player
v0.0.2
Published
Plugin template for Tweakpane
Downloads
18
Maintainers
Readme
Tweakpane plugin audio player
A mini audio player for Tweakpane. Sometimes you just want all of your UI in one place.
Demo
Installation
Browser
<script src="tweakpane.min.js"></script>
<script src="tweakpane-plugin-audio-player.min.js"></script>
<script>
const pane = new Tweakpane.Pane();
pane.registerPlugin(TweakpaneAudioPlayerPlugin);
</script>
Package
import {Pane} from 'tweakpane';
import * as AudioPlayerPlugin from 'tweakpane-plugin-audio-player';
const pane = new Pane();
pane.registerPlugin(AudioPlayerPlugin);
Usage
pane.addBlade({
view: 'audio-player',
label: 'track',
source: 'drum-intro.mp3'
});