Getting Current Time of a Video (Player - Swift)
I set up a video player using Player (using AVFoundation). I am trying to access and manipulate currentTime of the video however, the library is only providing duration of the video but not currentTime. I am tweaking the demo project of Player . Please check 'Updated' section below instead of here: A friend told me I can achieve using that approach, but I couldn't really get how to adapt this approach in this case. [NSTimer scheduledTimerWithInterval:1.0 target:self selector:@selector(refreshCurrentTimeTextField) userInfo:nil repeats:YES] -(void)refreshCurrentTimeTextField { NSTimeInterval