forum

Home / DeveloperSection / Forums / How to get paused audio time in iOS?

How to get paused audio time in iOS?

Anonymous User 2080 31-Mar-2016

I have a need to get audio time after device reboot. If I pause an audio and after rebooting the device, and after I continue playback the paused audio.
Now, my problem is - how can I get the total time, I use this code:

CMTime myAudioTime = self.audioPlayer.currentTime
[self.audioPlayer seekToTime:myAudioTime];

but the above code is not working.
Please tell me how can I do it..!


Updated on 31-Mar-2016
I am a content writter !

Can you answer this question?


Answer

0 Answers

Liked By