-(IBAction) playSlow:(UIButton *)sender{ if (frameRate > 1) frameRate -= 0.5; else frameRate -= 0.25; if (frameRate < 0) { frameRate=0; } queuePlayer.rate = frameRate; } -(IBAction) playFast:(UIButton *)sender{ if (frameRate < 1) frameRate += 0.25; else frameRate += 0.50; if(frameRate > 4) frameRate = 4; queuePlayer.rate = frameRate; }
source share