I'm developing an app that allows me to stream the videos I'm storing in Dropbox down to a client application on iOS. I authenticate appropriately, locate the file and call loadStreamableURLForFile to pass to the AVPlayer on iOS to display.
Everything works great, the video plays. But about 1 hour in (it's a two-hour 1.7GB test file on a Free account for testing) the video freezes and I receive an email about my shared links exceeding bandwidth - error 429 - and my ability to play videos is disabled.
This happens on a single play through of my own content directly. There are no other pieces of content in this dropbox and nothing is shared with anyone. I have never used the test account before and so there is no way I could have run into any bandwidth issues.
Based on the file size, I should be nowhere near the 20gb limit. Plus, my understanding was that playback of your own files wasn't subject to the bandwidth limit, only shares.
Am I generating the wrong kind of link from the API to playback? I notice if I view Dropbox.com in safari, I can playback the video.
How can I generate the URL that visiting Dropbox on Safari does within the iOS (objective-c) SDK?