You can use AVPlayer
for control video: create GPUImageMovie
by using AVPlayerItem
, so you can control your video by using AVPlayer
methods.
example:
NSURL *mediaURL = ...
AVPlayer *mainPlayer = [[AVPlayer alloc] init];
AVPlayerItem *playerItem = [[AVPlayerItem alloc] initWithURL:mediaUrl];
[mainPlayer replaceCurrentItemWithPlayerItem:playerItem];
GPUImageMovie *currentMovieFile = [[GPUImageMovie alloc] initWithPlayerItem:playerItem];
[currentMovieFile addTarget:...];
[currentMovieFile startProcessing];