I would like to make a UISlider(scrubber) for my AVPlayer. But since this is not an AVAudioPlayer, it doesn\'t have a built in duration. Any suggestion on how to create the
For Swift to get duration in seconds
if let duration = player.currentItem?.asset.duration { let seconds = CMTimeGetSeconds(duration) print("Seconds :: \(seconds)") }