We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 943af0a commit 3bb8d22Copy full SHA for 3bb8d22
ios/Video/RCTVideo.m
@@ -743,6 +743,10 @@ - (void)playerItemForSource:(NSDictionary *)source
743
NSString *audioUri = [audio objectForKey:@"uri"]; // ZL
744
uri = @"http://192.168.2.228:8987/piss.mp4"; // ZL
745
NSString *type = [source objectForKey:@"type"];
746
+ if (!uri || [uri isEqualToString:@""]) {
747
+ DebugLog(@"Could not find video URL in source '%@'", source);
748
+ return;
749
+ }
750
751
NSURL *url = isNetwork || isAsset
752
? [NSURL URLWithString:uri]
0 commit comments