Skip to content

Commit 075dfba

Browse files
authored
Only check for an empty source
1 parent 865db71 commit 075dfba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/Video/RCTVideo.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ - (void)playerItemForSource:(NSDictionary *)source withCallback:(void(^)(AVPlaye
436436
bool isAsset = [RCTConvert BOOL:[source objectForKey:@"isAsset"]];
437437
NSString *uri = [source objectForKey:@"uri"];
438438
NSString *type = [source objectForKey:@"type"];
439-
if([uri isEqualToString:@""] && [type isEqualToString:@""]) {
439+
if (!uri || [uri isEqualToString:@""]) {
440440
DebugLog(@"Could not find video URL in source '%@'", source);
441441
return;
442442
}

0 commit comments

Comments
 (0)