I have an NSTimer setting that fires every 0.1 seconds, in the callback I select currentTime() and use it to update the label with the video duration.
When I search ahead by setting the rate to 3, this timer will continue to work, but when I set the speed to -3, the video continues to grow, but currentTime() still returns the same value from the moment I started searching. This happens until I dwell on the search and then currentTime() will return the correct time
How can I get the current time of a video that will work when looking back?
Edit: Here is the code I'm using (translated from Xamarin C #):
class VideoPlayer: UIView { var player: AVPlayer! var wasPaused: Bool! func play(url: String) {
source share