
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
@firstcoders/hls-web-audio
Advanced tools
A package allowing for steaming multiple audio tracks with precision.
It uses the HLS protocol, however it will play any audio format that is supported by the relevant browser
and the Web Audio API.
This repo is a subtree split of our monorepo which will be made public in due course. We cannot process any pull-requests to this repo. Please contact us for help.
import { Controller, HLS } from '@soundws/hls-web-audio';
// Create a controller to control playback
const controller = new Controller();
// register the HLS tracks with the controller
const drums = new HLS({ controller });
const piano = new HLS({ controller });
const vocal = new HLS({ controller });
// Load all the tracks
Promise.all([
drums.load('http://my-server.com/drums.m3u8').promise,
piano.load('http://my-server.com/piano.m3u8').promise,
vocal.load('http://my-server.com/vocal.m3u8').promise
]).then(() => {
controller.play()
}).catch((err) => {
console.error(err)
})
// seek
controller.currentTime = 30 // seconds
controller.pct = 50 // percent
// events
controller.on('start', () => { /*..*/ }) // when playback starts
controller.on('pause', () => { /*..*/ }) // when playback pauses
controller.on('pause-start', () => { /*..*/ }) // when pausing (due to buffering) starts
controller.on('pause-end', () => { /*..*/ }) // when pausing (due to buffering) ends
controller.on('timeupdate', ({ t, pct }) => { /*..*/ }) // progress events, emitted ongoing
controller.on('seek', ({ t, pct }) => { /*..*/ }) // seek event, when currentTime is changed via setting either controller.currentTime or controller.pct
FAQs
Unknown package
The npm package @firstcoders/hls-web-audio receives a total of 24 weekly downloads. As such, @firstcoders/hls-web-audio popularity was classified as not popular.
We found that @firstcoders/hls-web-audio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.