Socket
Socket
Sign inDemoInstall

react-sound

Package Overview
Dependencies
21
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.2 to 0.7.0

7

lib/index.js

@@ -160,2 +160,3 @@ 'use strict';

url: this.props.url,
autoLoad: props.autoLoad,
volume: props.volume,

@@ -212,3 +213,4 @@ position: this.props.playFromPosition || this.props.position || 0,

onPlaying: _propTypes2.default.func,
onFinishedPlaying: _propTypes2.default.func
onFinishedPlaying: _propTypes2.default.func,
autoLoad: _propTypes2.default.bool
};

@@ -220,4 +222,5 @@ Sound.defaultProps = {

onPlaying: noop,
onFinishedPlaying: noop
onFinishedPlaying: noop,
autoLoad: false
};
exports.default = Sound;
{
"name": "react-sound",
"version": "0.6.2",
"version": "0.7.0",
"description": "React Sound component using soundmanager2",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -19,3 +19,3 @@ # react-sound

onPlaying={this.handleSongPlaying}
onFinishedPlaying={this.handleSongFinishedPlaying}
onFinishedPlaying={this.handleSongFinishedPlaying}
/>

@@ -64,2 +64,3 @@ );

* *volume (number)*: The current sound's volume. A value between 0 and 100.
* *autoLoad (boolean)*: If the sound should start loading automatically (defaults to `false`).
* *onLoading (function)*: Function that gets called while the sound is loading. It receives an object with properties `bytesLoaded`, `bytesTotal` and `duration`.

@@ -66,0 +67,0 @@ * *onPlaying (function)*: Function that gets called while the sound is playing. It receives an object with properties `position` and `duration`.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc