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?
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.