Options
All
  • Public
  • Public/Protected
  • All
Menu

🎤 Web recorder written in Typescript 🎤

styled with prettier Travis Dev Dependencies

Docs

https://puemos.github.io/web-recorder

Example

here

Usage

import { Recorder } from 'web-recorder'

function onGotStream(stream) {
  audioRecorder = new WebRecorder.Recorder(stream)

  audioRecorder.addEventListener('data', ev => {
    var blobUrl = URL.createObjectURL(ev.detail)

    const record = document.getElementById('record')
    record.src = blobUrl
  })
  audioRecorder.record()
}

function start() {
  navigator.getUserMedia(
    {
      audio: {
        advanced: [
          {
            echoCancelation: false
          }
        ]
      }
    },
    onGotStream,
    console.error
  )
}
function stop() {
  audioRecorder.stop()
}

Index

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc