HOW TO GET PAUSED AUDIO TIME IN IOS?

Chintoo Semi

Total Post:135

Points:947
Posted by  Chintoo Semi
 562  View(s)
Ratings:
Rate this:

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..!

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!