Media Manager: refactoring (download video/image with a unique API)

This commit is contained in:
giomfo
2015-01-12 11:00:53 +01:00
parent 7c7d023efa
commit ae8f610c76
10 changed files with 132 additions and 217 deletions
+2 -2
View File
@@ -95,7 +95,7 @@
if (self.message.attachmentURL) {
// check if there is a downlad in progress
MediaLoader *loader = [MediaManager mediaLoaderForURL:self.message.attachmentURL];
MediaLoader *loader = [MediaManager existingDownloaderForURL:self.message.attachmentURL];
NSDictionary *dict = loader.downloadStatsDict;
@@ -124,7 +124,7 @@
- (void)cancelDownload {
// get the linked medida loader
MediaLoader *loader = [MediaManager mediaLoaderForURL:self.message.attachmentURL];
MediaLoader *loader = [MediaManager existingDownloaderForURL:self.message.attachmentURL];
if (loader) {
[loader cancel];
}