Loading ios/RCTVideo.m +3 −0 Changes for ios/RCTVideo.m: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -188,6 +188,9 @@ static NSString *const timedMetadata = @"timedMetadata"; CMTime currentTime = _player.currentTime; const Float64 duration = CMTimeGetSeconds(playerDuration); const Float64 currentTimeSecs = CMTimeGetSeconds(currentTime); [[NSNotificationCenter defaultCenter] postNotificationName:@"RCTVideo_progress" object:nil userInfo:@{@"progress": [NSNumber numberWithDouble: currentTimeSecs / duration]}]; if( currentTimeSecs >= 0 && self.onVideoProgress) { self.onVideoProgress(@{ @"currentTime": [NSNumber numberWithFloat:CMTimeGetSeconds(currentTime)], Loading Loading
ios/RCTVideo.m +3 −0 Changes for ios/RCTVideo.m: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -188,6 +188,9 @@ static NSString *const timedMetadata = @"timedMetadata"; CMTime currentTime = _player.currentTime; const Float64 duration = CMTimeGetSeconds(playerDuration); const Float64 currentTimeSecs = CMTimeGetSeconds(currentTime); [[NSNotificationCenter defaultCenter] postNotificationName:@"RCTVideo_progress" object:nil userInfo:@{@"progress": [NSNumber numberWithDouble: currentTimeSecs / duration]}]; if( currentTimeSecs >= 0 && self.onVideoProgress) { self.onVideoProgress(@{ @"currentTime": [NSNumber numberWithFloat:CMTimeGetSeconds(currentTime)], Loading