Merged, but text sideloading is not working
This commit is contained in:
parent
ea7bc157e7
commit
0d32a31b85
@ -311,20 +311,18 @@ static NSString *const timedMetadata = @"timedMetadata";
|
|||||||
|
|
||||||
[self addPlayerTimeObserver];
|
[self addPlayerTimeObserver];
|
||||||
|
|
||||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
//Perform on next run loop, otherwise onVideoLoadStart is nil
|
||||||
|
if(self.onVideoLoadStart) {
|
||||||
//Perform on next run loop, otherwise onVideoLoadStart is nil
|
id uri = [source objectForKey:@"uri"];
|
||||||
if(self.onVideoLoadStart) {
|
id type = [source objectForKey:@"type"];
|
||||||
id uri = [source objectForKey:@"uri"];
|
self.onVideoLoadStart(@{@"src": @{
|
||||||
id type = [source objectForKey:@"type"];
|
@"uri": uri ? uri : [NSNull null],
|
||||||
self.onVideoLoadStart(@{@"src": @{
|
@"type": type ? type : [NSNull null],
|
||||||
@"uri": uri ? uri : [NSNull null],
|
@"isNetwork": [NSNumber numberWithBool:(bool)[source objectForKey:@"isNetwork"]]},
|
||||||
@"type": type ? type : [NSNull null],
|
@"target": self.reactTag
|
||||||
@"isNetwork": [NSNumber numberWithBool:(bool)[source objectForKey:@"isNetwork"]]},
|
});
|
||||||
@"target": self.reactTag
|
}
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
_videoLoadStarted = YES;
|
_videoLoadStarted = YES;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user