call requestAds when video playing
This commit is contained in:
@@ -274,7 +274,7 @@ static int const RCTVideoUnset = -1;
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:@"RCTVideo_progress" object:nil userInfo:@{@"progress": [NSNumber numberWithDouble: currentTimeSecs / duration]}];
|
||||
|
||||
if( currentTimeSecs >= 0 && self.onVideoProgress) {
|
||||
if(!_isRequestAds) {
|
||||
if(!_isRequestAds && currentTimeSecs >= 0.0001) {
|
||||
[self requestAds];
|
||||
_isRequestAds = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user