I tried below steps to capture screenshot but got black backround for MPMoviePlayerController
-(UIImage*)screenshot
{
CGSize imageSize = [[UIScreen mainSc
get image
from MPMoviePlayerController
like this on action
of button
:
-(void)getScreenShotOfMPMoviePlayerController:(MPMoviePlayerController *)mpPlayer
{
UIImage *thumbnail = [mpPlayer thumbnailImageAtTime:yourMoviePlayerObject.currentPlaybackTime
timeOption:MPMovieTimeOptionNearestKeyFrame];
}
EDIT : Merge
both images
as one image taken from MPMoviePlayerController
with the ScreenShot
taken from UIWindow
.
Refer ios-merging-two-images-of-different-size link for merging.