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

browser-audio-caster

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-audio-caster

> 浏览器播报音频工具函数

  • 1.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

browser-audio-caster

浏览器播报音频工具函数

Installtion
npm i browser-audio-caster
Usage
import play from 'browser-audio-caster'

play({
  src,
  speed,
  muted,
  waiting,
  startTime,
  autoPlay,
  onCanplay,
  onEnd,
  onPlay,
  onError,
  onTimeUpdate
})
Props
参数名说明默认值
srcmp3 地址-
speed播报速度1
muted是否静音false
startTime开始时间0
waiting延迟播报时间0
autoPlay是否直接播报, 设为 false 需要使用返回值调用 play()true
onCanplayon canplay-
onEndon end-
onPlayon play-
onErroron error-
onTimeUpdateon update-
Live demo

Edit browser-audio-caster-example

Keywords

FAQs

Package last updated on 26 Sep 2023

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