Saturday, July 1, 2017

Sound Cloud API

SOUNDCLOUD 
 
Sound-Cloud is the leading audio platform that enables anyone to upload, record, promote and share their sounds across the web.

The SoundCloud API makes most of the SoundCloud features from [SoundCloud.com] available to app developers.

Using the Sound-Cloud API, you can build applications that take sound on the web.

The SoundCloud API allows you to build applications that take advantage of all of the functionality offered by the SoundCloud platform. It is based on making HTTP requests to a set of endpoint URLs to request information and perform actions on behalf of users.



How to Create A SoundCloud App Using SOUNDCLOUD



  • Here We are using JavaScript SDKs
  • Before you start using the JavaScript SDK, you must let your application know where to find it.
  • Then we need to initialize the SDK with an id that identifies your application to us.
    • Normally you would get a client id by at the SoundCloud website registering your application
      • SC.initialize({
          client_id: 'YOUR_CLIENT_ID'
        });
  • After initializing find songs by making a simple request to the SoundCloud API.
    • we will use the method SC.get  
  • The SoundCloud API provides support for an open protocol called oEmbed. This allows SoundCloud tracks to be embedded in another website very easily..
  • Next use the JavaScript SDK to fetch a track to play.
    • The easiest way to do this is by calling SC.get
  • Now Set the Start and Stop
    • SC.stream('/tracks/293', function(sound) {
        $('#start').click(function(e) {
          e.preventDefault();
          sound.start();
        });
        $('#stop').click(function(e) {
          e.preventDefault();
          sound.stop();
        });
      });
  • And Now Design A Ux for your Music App and  Finally Push To Host.


My Music App Interface (Using SOUNDCLOUD)

https://minojeyam.github.io/ukifunwork1/




No comments:

Post a Comment

My First Day with Uki DN Cohort 1

 "Hello WORLD!"