You may have made an announcement to the AVAudioPlayer * Player property; in the h file, and also synthesized it. Now for forwarding, just do
- (void)ffwd
{
NSTimeInterval *time = [player currentTime];
time+=SKIP_TIME;
[player setCurrentTime:time];
}
similarly for rewind +
OR
- (void)ffwd{
NSTimeInterval time = avPlayer.currentTime;
time+=SKIP_TIME;
if (time > avPLayer.duration)
{
//nothing to do
}
else
[player setCurrentTime:time];
}
this one seems to be the best way, and also to rewind instead of 0 instead of duration