soundcloud-audio
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "soundcloud-audio", | ||
"main": "dist/soundcloud-audio.js", | ||
"version": "0.1.2", | ||
"version": "0.1.4", | ||
"homepage": "https://github.com/voronianski/soundcloud-audio.js", | ||
@@ -6,0 +6,0 @@ "description": "Play SoundCloud tracks and playslists in modern browsers with HTML5 Audio API", |
@@ -131,3 +131,7 @@ 'use strict'; | ||
SoundCloud.prototype.next = function () { | ||
if (this._playlist && this._playlist.tracks.length) { | ||
var tracksLength = this._playlist.tracks.length; | ||
if (this._playlistIndex >= tracksLength-1) { | ||
return; | ||
} | ||
if (this._playlist && tracksLength) { | ||
this.play({playlistIndex: ++this._playlistIndex}); | ||
@@ -138,2 +142,5 @@ } | ||
SoundCloud.prototype.previous = function () { | ||
if (this._playlistIndex <= 0) { | ||
return; | ||
} | ||
if (this._playlist && this._playlist.tracks.length) { | ||
@@ -140,0 +147,0 @@ this.play({playlistIndex: --this._playlistIndex}); |
{ | ||
"name": "soundcloud-audio", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Play SoundCloud tracks and playslists in modern browsers with HTML5 Audio API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
14320
155