Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cycle-robot-drivers/sound

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cycle-robot-drivers/sound

A Cycle.js driver for playing sounds using HTMLAudioElement

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-85%
Maintainers
1
Weekly downloads
 
Created
Source

@cycle-robot-drivers/sound

Cycle.js drivers and action components for playing sounds using HTMLAudioElement.

Try the demo at StackBlitz!

Note that this package was tested with Chrome browser (>= 65.0.3325.181) only.

API

AudioPlayerAction(sources)

AudioPlayerAction action component.

Params:
  • sources
    • goal: a stream of {src: string} (as HTML audio src) or a string (as a value of src).
    • AudioPlayer: EventSource for ended and pause events.
Return:
  • sinks
    • state: a reducer stream.
    • status: a stream of action status.
    • result: a stream of action results.
    • AudioPlayer: a stream for AudioPlayer driver input.

HTML Audio driver factory.

Return:
  • Driver the HTML Audio Cycle.js driver function. It takes a stream of objects containing [src](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#attr-src).org/en-US/docs/Web/API/SpeechSynthesisUtterance#Properties) fieldand returns a EventSource:

FAQs

Package last updated on 30 Jan 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc