SwiftAudio
                                
                                
                                
                                    SwiftAudio copied to clipboard
                            
                            
                            
                        Skipforward and skipforward issue
I'm little confused can any one help me how to skip forward 30 sec and skip backword 30 sec on clicking button (IbAction)
get the current from your player obj ie -
var seekTime = player.currentTime
then add + 30 for forward and -30 for backward
get the current from your player obj ie -
var seekTime = player.currentTime
then add + 30 for forward and -30 for backward
Hi since currentTime is get property only where I add +30 or - 30 sec
if i would have understood correctly , store the current time + 30 and add the update value on
for example if u want to do forward
var seekTime = player.currentTime + 30
player.seek(to: Double(seekTime))
this will forward your audio
nop unfortunately its not working
can u share your code if possible