Widget:SC

From WildWords
Revision as of 17:16, 5 February 2014 by Skj081 (talk | contribs)

Description

How to get the link for SC widget

This widget allows you to embed audio hosted on SoundCloud. It generates all necessary HTML markup and creates a minimalistic HTML5/Flash (depending on the client's browser capabilities) player with "Play/Pause" button and name of the audio you are embedding. You should pass one required parameter to the widget. It is absolute URL of the audio (which is easy to obtain from SoundCloud "Share' options).

The mini player is supposed to be very compact and not to make the page overloaded with unnecessary elements.

JavaScript engine and stylesheets for this widget are located in common.js and common.css respectively and can (should) be changed as needed. This widget uses jQuery library, SoundCloud API connector and jQuery plugin The SoundCloud Custom Player.

Usage

The widget will look like this.

The widget code looks like this:

{{#widget:SC|link=YOUR_URL|width=YOUR_WIDTH}}

Where:

link -- URL of the audio file you can find on SoundCloud (see the image)