Make sure modifiers are applied before playing

This commit is contained in:
anderslemke 2021-06-03 15:11:57 +02:00
parent 1eb11ce7b7
commit dcea67eb96

View File

@ -383,6 +383,7 @@ static int const RCTVideoUnset = -1;
} }
self->_player = [AVPlayer playerWithPlayerItem:self->_playerItem]; self->_player = [AVPlayer playerWithPlayerItem:self->_playerItem];
[self applyModifiers];
self->_player.actionAtItemEnd = AVPlayerActionAtItemEndNone; self->_player.actionAtItemEnd = AVPlayerActionAtItemEndNone;
[self->_player addObserver:self forKeyPath:playbackRate options:0 context:nil]; [self->_player addObserver:self forKeyPath:playbackRate options:0 context:nil];