We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 98eb7a3 + 075dfba commit f69231fCopy full SHA for f69231f
ios/Video/RCTVideo.m
@@ -467,6 +467,10 @@ - (void)playerItemForSource:(NSDictionary *)source withCallback:(void(^)(AVPlaye
467
bool shouldCache = [RCTConvert BOOL:[source objectForKey:@"shouldCache"]];
468
NSString *uri = [source objectForKey:@"uri"];
469
NSString *type = [source objectForKey:@"type"];
470
+ if (!uri || [uri isEqualToString:@""]) {
471
+ DebugLog(@"Could not find video URL in source '%@'", source);
472
+ return;
473
+ }
474
475
NSURL *url = isNetwork || isAsset
476
? [NSURL URLWithString:uri]
0 commit comments