Fix Obj-C problem
This commit is contained in:
parent
c3552fbf1e
commit
b03c02b4f2
@ -322,11 +322,11 @@ static NSString *const playbackRate = @"rate";
|
|||||||
} else if (object == _player) {
|
} else if (object == _player) {
|
||||||
if([keyPath isEqualToString:playbackRate] && [change objectForKey:NSKeyValueChangeNewKey]) {
|
if([keyPath isEqualToString:playbackRate] && [change objectForKey:NSKeyValueChangeNewKey]) {
|
||||||
[_eventDispatcher sendInputEventWithName:@"onPlaybackRateChange"
|
[_eventDispatcher sendInputEventWithName:@"onPlaybackRateChange"
|
||||||
body:@{@"playbackRate": _player.rate,
|
body:@{@"playbackRate": [NSNumber numberWithFloat:_player.rate],
|
||||||
@"target": self.reactTag}];
|
@"target": self.reactTag}];
|
||||||
if(_playbackStalled && _player.rate > 0) {
|
if(_playbackStalled && _player.rate > 0) {
|
||||||
[_eventDispatcher sendInputEventWithName:@"onPlaybackResume"
|
[_eventDispatcher sendInputEventWithName:@"onPlaybackResume"
|
||||||
body:@{@"playbackRate": _player.rate,
|
body:@{@"playbackRate": [NSNumber numberWithFloat:_player.rate],
|
||||||
@"target": self.reactTag}];
|
@"target": self.reactTag}];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user