简体   繁体   English

Soundcloud API下载

[英]Soundcloud API Download

I am asking this here because Soundcloud does not have support. 我在这里问这个是因为Soundcloud没有支持。 I going to build a website that people can purchase audio files from using Soundcloud to download the files (and stream before buy). 我将建立一个网站,使人们可以使用Soundcloud购买音频文件以下载文件(并在购买前流式传输)。 I want to be able to access the download file link in the Soundcloud API without the download link being enabled and showing on the Soundcloud UI. 我希望能够在未启用下载链接并将其显示在Soundcloud UI上的情况下访问Soundcloud API中的下载文件链接。 I can't seem to find this info in the Soundcloud API docs. 我似乎在Soundcloud API文档中找不到此信息。 I am going to have a Paypal redirect after the payment to the download link. 付款后,我将有一个贝宝重定向到下载链接。 I know this is a weird way of doing this but I have certain criteria I have to meet. 我知道这是一种怪异的方式,但是我必须满足某些条件。 I would host the audio files on my server but they are huge. 我会将音频文件托管在服务器上,但是它们很大。 Anyone have experience with this or can help? 任何人都有经验或可以帮助吗?

im not sure its possible to do what you want. 即时通讯不确定是否可以做您想做的事。 (very easily at least) (至少很容易)

there would be no way for the purchaser to access the 'download' track on soundcloud directly unless downloads are specifically enabled for that track. 除非专门为该曲目启用下载,否则购买者将无法直接在soundcloud上访问“下载”曲目。

really the only way to not host the files and still be able to provide the download would be to use the api to download or proxy the track from soundcloud to your server, using your credentials (because you always have access to your own tracks, download or stream). 实际上,不托管文件并且仍然能够提供下载的唯一方法是使用api使用凭据将soundcloud中的曲目下载或代理到服务器,或者使用您的凭据(因为您始终可以访问自己的曲目,进行下载)或流)。 mind you this would use 2x the bandwidth usage (the server getting the track from soundcloud, and the client downloading the track), and storage space would only be impacked on a temporary bases. 请注意,这将使用两倍的带宽使用率(服务器从soundcloud获取轨道,而客户端下载轨道),并且存储空间只会在临时的基础上被削弱。 but. 但。 this is a pretty hacky way and not really a good/proper solution. 这是一种很怪异的方法,而不是一个好的/正确的解决方案。

you can: -compress/re-encode the audio as to not use as much disk space -pay for more storage space at your web host, its usually pretty cheap thse days. 您可以:-压缩/重新编码音频,以免占用过多的磁盘空间-在您的网络主机上支付更多的存储空间,这通常是很便宜的日子。

So you want to charge on something free? 因此,您想免费收费吗? Well, I think all the downloader out there are middleware where they stream the track from soundcloud and response to client as attachment upon request, one of many examples is http://wittysound.com . 好吧,我认为所有下载器都存在中间件,它们在中间件中将声音流从Soundcloud流化并根据请求作为附件响应客户端,许多示例之一是http://wittysound.com Cheapest way to get thing done is providing direct link to soundcloud server like what http://soundflush.com does 完成任务的最便宜方法是像http://soundflush.com一样提供到soundcloud服务器的直接链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM