How can I add 5 seconds to my current playing Time? Actually this is my code:
CMTime currentTime = music.currentTime;
I can´t use CMTimeGet
In Swift:
private extension CMTime { func timeWithOffset(offset: TimeInterval) -> CMTime { let seconds = CMTimeGetSeconds(self) let secondsWithOffset = seconds + offset return CMTimeMakeWithSeconds(secondsWithOffset, preferredTimescale: timescale) } }