Simple Soundcloud Player Plugin With jQuery

Simple Soundcloud Player Plugin With jQuery
File Size: 5.03 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

A simple jQuery plugin used for embedding a custom Soundcloud Player into your webpage that allows to search tracks by title, tags or username.

How to use it:

1. Include jQuery library together with the jQuery Soundcloud Player's JS and CSS on the webpage.

<link rel="stylesheet" href="src/scp.css">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="src/scp.js"></script>

2. Create a DIV container for your Soundcloud player.

<div id="scp"></div>

3. Call the function and insert your Soundcloud client ID into the JavaScript.

scp(
  client_id = 'YOUR CLIENT ID HERE'
);

4. Set autoplay.

scp(
  client_id = 'YOUR CLIENT ID HERE',
  auto_play = true
);

This awesome jQuery plugin is developed by bachors. For more Advanced Usages, please check the demo page or visit the official website.