Forum Discussion

vegard's avatar
vegard
Explorer | Level 3
9 years ago

Streaming Non-Shared Music (Javascript)

 

I want to write a simple javascript-based (frontend only) dropbox music player. Just a dropbox file explorer, playlist and audio controls -- very basic for when I want to play some music without syncing the files locally.

 

I have experimented a bit, and can create a temporary file link (filesGetTemporaryLink) and play it with Audio object.

 

This works, but I wonder if there is a better way? It seems a temporary link is a public (non-authenticated) link to the file. I guess it is a very minor security risk. I don't know if Dropbox likes/allows frequent temporary link creation.  Is it possible to get an authenticated link?

 

Thanks for the help. Sorry, I am a bit new to web/javascript/dropbox-api so I might be missing the obvious.

 

 

2 Replies

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!