soundcloud-like-player
v0.6.5
Published
This library allows you to insert in any html element on page music player like a soundcloud widget. It uses [soundcloud-audio](https://www.npmjs.com/package/soundcloud-audio) for fetching and playing tracks from [soundcloud](https://soundcloud.com).
Downloads
17
Readme
SoundCloudLikePlayer
This library allows you to insert in any html element on page music player like a soundcloud widget. It uses soundcloud-audio for fetching and playing tracks from soundcloud.
Installation
npm install soundcloud-like-player --save
Usage examples
Basic usage
import SoundCloudLikePlayer from 'soundcloud-like-player';
let player = new SoundCloudLikePlayer({
container: document.getElementById('example'),
clientId: 'cf92370f6c9691fab24bdf6791b57d61',
redirectUri: 'http://localhost:3001/callback.html',
autoplay: true
});
player.resolve('http://soundcloud.com/jxnblk/sets/yello');
Tracks search
player.search({q: 'buskers', limit: 20, offset: 10})
see https://developers.soundcloud.com/docs/api/guide#search for more search options
NOTE You should use your correct clientId and redirectUri params for features, requiring authentication (e.g. like button). See https://developers.soundcloud.com/docs/api/sdks#authentication for details.
API
Coming soon...