Skip to content

Commit

Permalink
fix(ios): Fix video playback of files with uppercase extension (#264)
Browse files Browse the repository at this point in the history
fix #260
  • Loading branch information
jcesarmobile authored Jan 9, 2019
1 parent bea7f84 commit 2c4b225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/IONAssetHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ -(NSString *) getMimeType:(NSString *)fileExtension {
-(BOOL) isMediaExtension:(NSString *) pathExtension {
NSArray * mediaExtensions = @[@"m4v", @"mov", @"mp4",
@"aac", @"ac3", @"aiff", @"au", @"flac", @"m4a", @"mp3", @"wav"];
if ([mediaExtensions containsObject:pathExtension]) {
if ([mediaExtensions containsObject:pathExtension.lowercaseString]) {
return YES;
}
return NO;
Expand Down

0 comments on commit 2c4b225

Please sign in to comment.