MPMoviePlayerController slow forward and reverse

Possible duplicate:
Play / Forward Video at 2x 3x 4x Speed ​​- iPhone SDK

I am currently working on a video application. I am using MPMoviePlayerController to play the video that I recorded in my application. My question is what do I need to do to play the video in slow motion forward and backward in MPMoviePlayerController ?

+4
source share
2 answers
 -(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; } 
+5
source

Send the link here . It can help you. Also, the documentation for Apple here gives you a full link to MPMoviePlayerController.

0
source

Source: https://habr.com/ru/post/1416304/


All Articles