Search code examples
htmlavaudioplayerrecorder

Any HTML5 Audio Recorders (alongwith an Audio Player)


I have discovered Universal HTML5 players like http://www.jplayer.org/ , but none of them have a record button. Wondering if there is one, similar to the one in the image below:

enter image description here


Solution

  • You can use video.js with this plugin for recording audio/video enter image description here Here's the example:

    var player = videojs("recorder",
    {
        controls: true,
        width: 600,
        height: 300,
        plugins: {
            wavesurfer: {
                src: "live",
                waveColor: "black",
                progressColor: "#2E732D",
                debug: true,
                cursorWidth: 1,
                msDisplayMax: 20,
                hideScrollbar: true
            },
            record: {
                audio: true,
                video: false,
                maxLength: 20,
                debug: true
            }
        }
    });
    <audio id="recorder" class="video-js vjs-default-skin"></audio>
    <script src="http://vjs.zencdn.net/6.2.0/video.js" defer></script>
    <script src="path/to/recorder/plugin.js" defer></script>