https://github.com/prayerslayer/scplaylist
A jQuery plugin that turns a bunch links to SC tracks on your website into a simple playlist, regardless of their DOM position.
https://github.com/prayerslayer/scplaylist
Last synced: about 2 months ago
JSON representation
A jQuery plugin that turns a bunch links to SC tracks on your website into a simple playlist, regardless of their DOM position.
- Host: GitHub
- URL: https://github.com/prayerslayer/scplaylist
- Owner: prayerslayer
- Created: 2012-01-29T13:21:43.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-01-28T15:57:17.000Z (almost 13 years ago)
- Last Synced: 2024-04-15T02:57:48.800Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 150 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.mediawiki
Awesome Lists containing this project
README
== SoundCloud Playlist ==
It turns all links to tracks on SC on your page into custom players that are linked via a simple playlist feature - one track ends, the next starts. The plugin collects all tracks in a container you specify, regardless of their position in the DOM.
=== Dependencies ===
jQuery, of course. Then sc-player.js and soundcloud.player.api.js from SoundCloud, a CSS for the custom player would also be nice. Look [http://developers.soundcloud.com/docs/custom-player here].
=== Usage ===
Simple. Add links to tracks on SoundCloud like this:
Track name
It's important that all tracks that you want in a playlist share a CSS class. You're now one function call away from your playlist:
$(document).ready(function() {
$(div-containing-your-tracks).SCPlaylist();
});
If you want to use a class other than "track", call it like this:
$(document).ready(function() {
$(div-containing-your-tracks).SCPlaylist({
"tracks": "your-class"
});
});
Check out the example too!