Skip to content

Commit

Permalink
Change streamURLs to contain NSURLs instead of NSStrings
Browse files Browse the repository at this point in the history
  • Loading branch information
SoneeJohn committed Dec 27, 2015
1 parent 368ede1 commit e179efc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion YTVimeoExtractor/YTVimeoVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ - (void)extractVideoInfoWithCompletionHandler:(void (^)(NSError *error))completi

NSInteger quality = [[info valueForKey:@"quality"]integerValue];
NSString *urlString = info[@"url"];
NSURL *url = [NSURL URLWithString:urlString];

//Only if the file is playable on OS X or iOS natively
if([urlString rangeOfString:@".mp4"].location != NSNotFound){

streamURLs[@(quality)] = urlString;
streamURLs[@(quality)] = url;

}
}
Expand Down

0 comments on commit e179efc

Please sign in to comment.