Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@solid-primitives/audio
Advanced tools
Primitive to manage audio playback in the browser. The primitives are easily composable and extended. To create your own audio element, consider using createAudioPlayer which allows you to supply a player instance that matches the built-in standard Audio API.
Each primitive also exposes the audio instance for further custom extensions. Within an SSR context this audio primitive performs noops but never interrupts the process. Time values and durations are zero'd and in LOADING state.
npm install @solid-primitives/audio
# or
yarn add @solid-primitives/audio
A foundational primitive with no player controls but exposes the raw player object.
const { player } = createAudioPlayer("example.wav");
Provides a very basic interface for wrapping listeners to a supplied or default audio player.
const { play, pause } = createAudioManager("example.wav");
Creates a very basic audio/sound player.
const { play, pause, duration, currentTime, seek, setVolume } = createAudioManager("example.wav");
You may view a working example here: https://codesandbox.io/s/solid-primitives-audio-5c9f3
0.0.100
Pulling an early release of the package together and preparing for 1.0.0 release. No changes.
1.0.0
Minor clean-up, added tests and released.
1.0.1
Added testing and support for srcObject.
1.1.5
Added proper SSR support.
FAQs
Primitives to manage audio and single sounds.
The npm package @solid-primitives/audio receives a total of 0 weekly downloads. As such, @solid-primitives/audio popularity was classified as not popular.
We found that @solid-primitives/audio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.