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

soundcloud-audio

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

soundcloud-audio - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

15

index.js

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

this.playing = src;
this.audio.play();

@@ -218,2 +219,16 @@ };

SoundCloud.prototype.setVolume = function (volumePercentage) {
if (!this.audio.readyState) {
return;
}
this.audio.volume = volumePercentage;
}
SoundCloud.prototype.setTime = function (seconds) {
if (!this.audio.readyState) {
return;
}
this.audio.currentTime = seconds;
}
module.exports = SoundCloud;

2

package.json
{
"name": "soundcloud-audio",
"version": "1.1.0",
"version": "1.1.1",
"description": "Play SoundCloud tracks and playslists in modern browsers with HTML5 Audio API",

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

@@ -111,2 +111,10 @@ # <img src="http://www.officialpsds.com/images/thumbs/Soundcloud-Logo-psd47614.png" width="75" align="left">&nbsp;soundcloud-audio.js

#### `setVolume(volumePercentage)`
Adjust the volume with a number between 0 and 1, 0 being not audible and 1 being full volume.
#### `setTime(seconds)`
Set the progress of the song to a specific number of seconds.
### Props

@@ -113,0 +121,0 @@

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