Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
mac m.6
10 years agoExplorer | Level 4
media link for streaming, in .net, on api 2?
I'm writing an app to play media file streamed off dropbox. I'm using the official .Net SDK, and API v2. I'm generating my media link using client.Sharing in the SDK, but the file doesn't seem to stream. Looking at my network console in Firefox, I can see the stream seems to be hanging.
After doing some reading, it seems I'm supposed to be using .Media instead of .Share, but there's no media in the official SDK. Will I have to revert to an API v1 SDK to get this to work? Do I even need media, or is share good enough for streaming?
Thanks
4 Replies
- Greg-DB10 years ago
Dropbox Community Moderator
The shared links you can retrieve using the SDK in the Sharing namespace, e.g., CreateSharedLinkWithSettingsAsync, are meant for sharing links to others users. These links don't return the file content directly.
If you just need to stream data to a media player, you should instead use GetTemporaryLinkAsync. That will give you a direct link to the file content you can use to stream the file in your media player.
- mac m.610 years agoExplorer | Level 4
Thanks Gregory, GetTemporaryLinkAsync was exactly what I needed!
- Rodres8 years agoNew member | Level 2
Hi, I'm not sure if this method is correct because I can't find it, I'm looking for an HTTP Live Streaming link to adaptive media player
- Greg-DB8 years ago
Dropbox Community Moderator
Rodres It looks like you also opened a new thread for this, so I'll follow up there:
https://www.dropboxforum.com/t5/API-support/Video-Streaming/m-p/270868#M16002
About 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!