Commit f7fd5dc5 authored by Ash Mishra's avatar Ash Mishra
Browse files

Fix for files that are stored in the Documents folder on iOS (and not as resources in the JS app)

parent 887010f2
Loading
Loading
Loading
Loading
+1 −1
Changes for ios/RCTVideo.m: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -358,7 +358,7 @@ static int const RCTVideoUnset = -1;
}

- (NSURL*) urlFilePath:(NSString*) filepath {
  if ([filepath containsString:@"file://"]) {
  if ([filepath containsString:@"file://"] && ![filepath containsString:@"/Documents/"]) {
    return [NSURL URLWithString:filepath];
  }