soundcloud-audio
Advanced tools
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; |
{ | ||
"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"> 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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17307
221
179