soundcloud-audio
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "soundcloud-audio", | ||
"main": "dist/soundcloud-audio.js", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"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", |
{ | ||
"name": "soundcloud-audio", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Play SoundCloud tracks and playslists in modern browsers with HTML5 Audio API", | ||
@@ -14,2 +14,6 @@ "main": "index.js", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/voronianski/soundcloud-audio.js.git" | ||
}, | ||
"keywords": [ | ||
@@ -16,0 +20,0 @@ "soundcloud", |
# <img src="http://www.officialpsds.com/images/thumbs/Soundcloud-Logo-psd47614.png" width="75" align="left"> soundcloud-audio.js | ||
[![build status](http://img.shields.io/travis/voronianski/soundcloud-audio.js.svg?style=flat)](https://travis-ci.org/voronianski/soundcloud-audio.js) | ||
> Wrapper around [HTML5 `<audio>`](https://developer.mozilla.org/en/docs/Web/HTML/Element/audio) and SoundCloud [tracks](https://developers.soundcloud.com/docs/api/reference#tracks) and [playlists](https://developers.soundcloud.com/docs/api/reference#playlists) APIs. It could be treated as small replacement for official [SoundCloud SDK](https://developers.soundcloud.com/docs/api/sdks#javascript). | ||
@@ -74,6 +76,4 @@ | ||
If you don't have SoundCloud `stream_url` (e.g. `https://api.soundcloud.com/tracks/185533328/stream`) or you need track's metadata then this method is for you. Pass original track's or playlist's url as a first argument. Once data will be resolved without errors callback function will receive it as plain object as a second argument. | ||
If you don't have SoundCloud `stream_url` (e.g. `https://api.soundcloud.com/tracks/:id/stream`) or you need track's metadata then this method is for you. Pass original track's or playlist's url as a first argument. Once data will be resolved without errors callback function will receive it as plain object as the only argument. | ||
This method rely on a small [jsonp](https://www.npmjs.com/package/jsonp) solution in order to make API requests. | ||
#### `play([options])` | ||
@@ -146,2 +146,3 @@ | ||
- Add more methods of SoundCloud API (like `getTrackById` etc.) | ||
- Provide streaming options and mimic events in order to easily integrate with [Waveform.js](http://waveformjs.org/) | ||
@@ -148,0 +149,0 @@ |
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
13483
159
0