Merge pull request #2395 from zetlanddk/apply-modifiers-before-starting

Make sure modifiers are applied before playing
This commit is contained in:
Eran Hammer 2022-04-20 01:15:58 -07:00 committed by GitHub
commit 60d0968514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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