Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
audio-play
Advanced tools
Play audio buffer, browser/node-wise.
const play = require('audio-play');
const load = require('audio-loader');
load('./sample.mp3').then(play);
const play = require('audio-play');
//play audio buffer with possible options
let pause = play(audioBuffer, {
//start/end time, can be negative to measure from the end
start: 0,
end: audioBuffer.duration,
//repeat playback within start/end
loop: false,
//playback rate
rate: 1,
//fine-tune of playback rate, in cents
detune: 0,
//volume
volume: 1,
//device (for use with NodeJS, optional)
device: 'hw:1,0',
//possibly existing audio-context, not necessary
context: require('audio-context'),
//start playing immediately
autoplay: true
}, onend?);
//pause/continue playback
play = pause();
pause = play();
//or usual way
let playback = play(buffer, opts?, cb?);
playback.pause();
playback.play();
//get played time
playback.currentTime;
FAQs
Play audio buffer in node or browser
The npm package audio-play receives a total of 123 weekly downloads. As such, audio-play popularity was classified as not popular.
We found that audio-play demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.