Fix for files that are stored in the Documents folder on iOS (and not as resources in the JS app)
This commit is contained in:
parent
f45d6a2c3e
commit
3b0d459230
@ -370,7 +370,7 @@ static int const RCTVideoUnset = -1;
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSURL*) urlFilePath:(NSString*) filepath {
|
- (NSURL*) urlFilePath:(NSString*) filepath {
|
||||||
if ([filepath containsString:@"file://"]) {
|
if ([filepath containsString:@"file://"] && ![filepath containsString:@"/Documents/"]) {
|
||||||
return [NSURL URLWithString:filepath];
|
return [NSURL URLWithString:filepath];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1101,11 +1101,11 @@ static int const RCTVideoUnset = -1;
|
|||||||
|
|
||||||
if (!_fullscreenOptions) {
|
if (!_fullscreenOptions) {
|
||||||
[self setFullscreenOptions:
|
[self setFullscreenOptions:
|
||||||
@{
|
@{
|
||||||
@"enabled": enabled,
|
@"enabled": enabled,
|
||||||
@"autorotate": @"0",
|
@"autorotate": @"0",
|
||||||
@"preferredOrientation": @"default"
|
@"preferredOrientation": @"default"
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
[_fullscreenOptions setValue:enabled forKey:@"enabled"];
|
[_fullscreenOptions setValue:enabled forKey:@"enabled"];
|
||||||
|
Loading…
Reference in New Issue
Block a user