DVAssetLoaderDelegate
DVAssetLoaderDelegate copied to clipboard
How to fetch video where url doesn't have extension?
You can configure the "AVURLAssetOutOfBandMIMETypeKey" option in the AVURLAsset initializer with the mimeType you're expecting. For example:
Swift
let asset = AVURLAsset(url: remoteURL, options: ["AVURLAssetOutOfBandMIMETypeKey": "video/mp4"])
Objective-C
AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:url options:@{@"AVURLAssetOutOfBandMIMETypeKey": @"video/mp4"}];
You can initialize the lib DVURLAsset the same way. This worked for me.