Streaming private tracks from Soundcloud's API using a Custom Player

扶醉桌前 提交于 2019-12-04 16:09:18

in theory, yes, you can do that.

first you'll need to gain access token for the users who has uploaded these private tracks. (this should happen on server side)

after that, you will impersonate every visitor on the site as this default user, and he will have access to the tracks.

but, this is not a good practice. you need to be worried about is that you need to hide this token pretty good, so the visitors can't abuse it.

my suggestion is to create a server code that will do all the job related to access token (getting tracks, getting tracks streams etc), and in client side just show the final results. this way, you'll keep your access token safe.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!