Fix Obj-C problem

This commit is contained in:
Stanisław Chmiela 2016-04-28 14:45:14 +02:00
parent c3552fbf1e
commit b03c02b4f2

View File

@ -322,11 +322,11 @@ static NSString *const playbackRate = @"rate";
} else if (object == _player) {
if([keyPath isEqualToString:playbackRate] && [change objectForKey:NSKeyValueChangeNewKey]) {
[_eventDispatcher sendInputEventWithName:@"onPlaybackRateChange"
body:@{@"playbackRate": _player.rate,
body:@{@"playbackRate": [NSNumber numberWithFloat:_player.rate],
@"target": self.reactTag}];
if(_playbackStalled && _player.rate > 0) {
[_eventDispatcher sendInputEventWithName:@"onPlaybackResume"
body:@{@"playbackRate": _player.rate,
body:@{@"playbackRate": [NSNumber numberWithFloat:_player.rate],
@"target": self.reactTag}];
}
}