Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@yoonit/javascript-recorder

Package Overview
Dependencies
Maintainers
11
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yoonit/javascript-recorder

A JavaScript Recording Library, powered by Cyberlabs.

latest
npmnpm
Version
0.0.1-alpha.1
Version published
Maintainers
11
Created
Source

yoonit-recorder

How to run the project

npm install @yoonit/javascript-recorder

How to use it

import YooRecorder from '@yoonit/javascript-recorder'

const recorder = await YooRecorder()

It's important to allow microphone, to audio capture be possible.

Methods

start

  • It starts recording audio.
recorder.start()


pause

  • Pauses current audio record.
recorder.pause()

stop

  • It stops recording and clear it.
recorder.stop()

clear

  • It clears recorded data.
recorder.clear()

getMedia

  • Returns captured media.
const media = await recorder.getMedia()

sendAudio(media.audioBlob)


Returns:
PropertyDescriptionType
audioAudio file typewmv
audioBlobAudio blobbinary
audioUrlAudio URLstring
fileAudio file objectFile
playFunction to play recorded audioFunction

FAQs

Package last updated on 14 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts