Reset progress observer on update interval changes

This commit is contained in:
Dan Hodos 2017-09-28 21:37:52 -04:00
parent 435669a944
commit 10cba5ad5c

View File

@ -725,6 +725,11 @@ static NSString *const timedMetadata = @"timedMetadata";
- (void)setProgressUpdateInterval:(float)progressUpdateInterval
{
_progressUpdateInterval = progressUpdateInterval;
if (_timeObserver) {
[self removePlayerTimeObserver];
[self addPlayerTimeObserver];
}
}
- (void)removePlayerLayer