oauth 2.0 - Using the soundcloud api's RESOLVE from vb.net, plus very general questions -


i have website written in vb.net (actually asp.net using vb) , want allow users view soundcloud videos embedded in pages. idea use javascript api add particular feature specialized subset of users might want.

i need ability javascript make audio such actions as: 1) play 2) pause 3) seek

also, need events audio tell me when audio has 1) paused 2) started play , 3) seeked , 4) ended.

this basic, , have read of documentation, guidance in reading rest, have following questions:

  1. if agrees allow soundcloud file used on website, have set 'enable-api' or other settings? if so, on "upload" page?

  2. does soundcloud have private permissions youtube does? in youtube, can make video public, can make shareable circle of friends. if third party (me, instance) embeds 1 of videos in own website, users have logged in youtube on browser can see video. soundcloud have analogous? feature have, because if user has doubts security, can still rely on youtube or soundcloud security.

  3. if user gives me url soundcloud audio, program need use 'resolve' find out sound cloud id, can embed audio in webpage. programming language involved oauth 2, 1 not familiar with. here example documentation, how translate microsoft's dot-net languages?

example follows:

create client app's credentials

client = soundcloud.new(:client_id => 'your_client_id')

a permalink track

track_url = 'http://soundcloud.com/forss/voca-nomen-tuum'

resolve track url track resource

track = client.get('/resolve', :url => track_url)

  1. i registered, have clientid now, come in website (apart above example)? required make javascript calls work?

  2. if website used enough, might try make money off advertisements. soundcloud allow that?

thanks.

  1. yes, users have options set tracks in public , private, if track public can access via api.

step getting tracks on website.

  1. use resolve api. eg.
http://api.soundcloud.com/resolve?url={your track url}&client_id=your_client_id 
  1. after reolve json format data, , extract id data.
  2. pass track id in following link
  https://api.soundcloud.com/i1/tracks/{trackid}/streams?client_id=02gujc0hh2ct1egocyxqizrfu91c72ea&app_version=1467192015 
  1. you preview_mp3_128_url in json format, extract , use on website.

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -