fixing bug where there were no times to observe
This commit is contained in:
@@ -358,11 +358,12 @@ extension InnerCircleViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if times.count > 0 {
|
||||||
// Add time observer. Observe boundary time changes on the main queue.
|
// Add time observer. Observe boundary time changes on the main queue.
|
||||||
self.queuePlayer.addBoundaryTimeObserver(forTimes: times, queue: .main) { [weak self] in
|
self.queuePlayer.addBoundaryTimeObserver(forTimes: times, queue: .main) { [weak self] in
|
||||||
// Update UI
|
// Update UI
|
||||||
self?.messagesListeningProgress += Float(Self.multiplier)
|
self?.messagesListeningProgress += Float(Self.multiplier)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user