Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Sergey S.10
9 years agoNew member | Level 1
Video thumbnails are not generated anymore
Some days ago we found that video thumbnails are not displayed in our app. iOS app uses official cocoapod Dropbox-iOS-SDK (version 1.3.13). At some step it displays media content of user's Dropbox fo...
James K.36
9 years agoNew member | Level 1
Gregory
If this next snippet doesn't make sense, i'll have to wait for Sergey to weigh in tomorrow, but here is the method in the Dropbox-iOS-SDK-Source that is being called.
- (void)loadThumbnail:(NSString *)path ofSize:(NSString *)size intoPath:(NSString *)destinationPath
{
NSString* fullPath = [NSString stringWithFormat:@"/thumbnails/%@%@", root, path];
NSString* format = @"JPEG";
if ([path length] > 4) {
NSString* extension = [[path substringFromIndex:[path length] - 4] uppercaseString];
if ([[NSSet setWithObjects:@".PNG", @".GIF", nil] containsObject:extension]) {
format = @"PNG";
}
}
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObject:format forKey:@"format"];
if(size) {
[params setObject:size forKey:@"size"];
}
NSURLRequest* urlRequest =
[self requestWithHost:kDBDropboxAPIContentHost path:fullPath parameters:params];
DBRequest* request =
[[[DBRequest alloc]
initWithURLRequest:urlRequest andInformTarget:self selector:@selector(requestDidLoadThumbnail:)]
autorelease];
request.resultFilename = destinationPath;
request.userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
root, @"root",
path, @"path",
destinationPath, @"destinationPath",
size, @"size", nil];
[imageLoadRequests setObject:request forKey:[self thumbnailKeyForPath:path size:size]];
}
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!