michalstocki / FlashWavRecorder

Simple flash file for recording audio and saving as a WAV
http://michalstocki.github.io/FlashWavRecorder/html/
MIT License
241 stars 108 forks source link

Create jQuery plugin #35

Open michalstocki opened 10 years ago

michalstocki commented 10 years ago

The recorder setup is quite complicated (especially two-sides event bindings), so it could be large improvement, when we could use pre configured FlashWavRecorder as jQuery plugin.

Features

Usage example If we call:

$('.recorder-1').flashWavRecorder();

on element

<div class="recorder-1"></div>

we will get (state: recording):

<div class="recorder-1 fwr-recorder fwr-state-recording">
    <button class="fwr-start-recording" disabled="disabled"><button>
    <button class="fwr-stop-recording"></button>
    <button class="fwr-start-playing"><button>
    <button class="fwr-pause-playing" disabled="disabled"></button>
    <button class="fwr-send-recording"></button>
</div>