我已将Dropbox API(Dropbox API)集成到我的项目中,并且只想访问音频文件。
使用Dropbox API创建共享链接。
现在,我想使用Jukebox或任何可共享网址的音频播放器播放该歌曲。
我尝试使用Jukebox播放多个链接,运行正常。
我只面对Dropbox可共享的链接。
答案 0 :(得分:3)
The shared links, e.g., from createSharedLinkWithSettings
, point to an HTML preview page, and not the file content itself.
If you need the actual file content, e.g., to use it in a media player, you have a few options:
1) Use download(path:rev:overwrite:destination:)
to download the file to disk.
2) Use download(path:rev:)
to download the file to memory. (Not recommended for large files.)
3) Use getTemporaryLink(path:)
to get a temporary link to the file. This may be the best option if you need a URL to give to a media player.