fix when controls & muted

This commit is contained in:
Daniel Mariño 2019-07-06 13:58:18 +02:00
parent 3a7be63de3
commit 576273d712

View File

@ -958,7 +958,9 @@ static int const RCTVideoUnset = -1;
- (void)applyModifiers - (void)applyModifiers
{ {
if (_muted) { if (_muted) {
if (!_controls) {
[_player setVolume:0]; [_player setVolume:0];
}
[_player setMuted:YES]; [_player setMuted:YES];
} else { } else {
[_player setVolume:_volume]; [_player setVolume:_volume];