Bugfix: #1930
This commit is contained in:
parent
5683167a3a
commit
522af9eaa7
@ -718,7 +718,10 @@ static int const RCTVideoUnset = -1;
|
|||||||
}
|
}
|
||||||
} else if (object == _player) {
|
} else if (object == _player) {
|
||||||
if([keyPath isEqualToString:playbackRate]) {
|
if([keyPath isEqualToString:playbackRate]) {
|
||||||
if(self.onPlaybackRateChange) {
|
if (_player.rate > 0 && _rate > 0 && _player.rate != _rate) {
|
||||||
|
// Playback is resuming, apply rate modifer.
|
||||||
|
[_player setRate:_rate];
|
||||||
|
} else if(self.onPlaybackRateChange) {
|
||||||
self.onPlaybackRateChange(@{@"playbackRate": [NSNumber numberWithFloat:_player.rate],
|
self.onPlaybackRateChange(@{@"playbackRate": [NSNumber numberWithFloat:_player.rate],
|
||||||
@"target": self.reactTag});
|
@"target": self.reactTag});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user