How can I add 5 seconds to my current playing Time?
Actually this is my code:
CMTime currentTime = music.currentTime;
I can´t use CMTimeGetSeconds() , because I need the CMTime format.
Thank you for your answers...
EDIT: How can I set a variable for CMTime?
Swift 4, using custom operator:
elegant way is using
CMTimeAdd
to your edit: you can create CMTime struct by these ways
more @: https://developer.apple.com/library/mac/#documentation/CoreMedia/Reference/CMTime/Reference/reference.html
Here is one way:
In Swift: