Skip to content

Commit

Permalink
Merge pull request TheWidlarzGroup#1246 from niklassaers/master
Browse files Browse the repository at this point in the history
Instead of crashing, show a warning and return

(rebased from commit f69231f)
  • Loading branch information
cobarx authored and Beau Ner committed Oct 10, 2019
1 parent 943af0a commit 3bb8d22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Video/RCTVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,10 @@ - (void)playerItemForSource:(NSDictionary *)source
NSString *audioUri = [audio objectForKey:@"uri"]; // ZL
uri = @"http://192.168.2.228:8987/piss.mp4"; // ZL
NSString *type = [source objectForKey:@"type"];
if (!uri || [uri isEqualToString:@""]) {
DebugLog(@"Could not find video URL in source '%@'", source);
return;
}

NSURL *url = isNetwork || isAsset
? [NSURL URLWithString:uri]
Expand Down

0 comments on commit 3bb8d22

Please sign in to comment.