displaying iphone movie controlls on touch - iphone

i have the video controlls set to hidden in my app with the code
[mp setMovieControlMode:MPMovieControlModeHidden];
this sets in hidden for the whole video.
what i want to do is have the controls hidden at the start but if the screen is pressed then have the controls display any suggestions? would be much appreciated.

There is a good answer here:
How to hide control before MPMoviePlayerController movie is played?

Related

Playing a video in UIView( subview )

Is it possible to play the video in uiview's subview (popup) on the same screen only not by using the iPhone video player which player the video in full screen mode.
Any help would be appreciated.
Thanks,
Insert a HTML5 video tag into UIWebView, then subview it into UIView. I can guarantee that it works for Youtube videos.

Display image of first frame of movie in MPMoviePlayerController before playing movie

I am a beginner in iPhone Development. I have an object of MPMoviePlayerController which loads a video from my application resource bundle. I have set the backgroundColor of the MPMoviePlayer to clear color. I have set shouldAutoplay property to NO. Before the user clicks on the play button, a blank screen is displayed. I tried to get the first image using the following method
UIImage *thumbnail =
[self.videoPlayer thumbnailImageAtTime:0 timeOption:MPMovieTimeOptionNearestKeyFrame];
But where do I set this image so that the black screen which appears before the user clicks on the play button will contain only the thumbnail image. Please help.
You are setting clear color as an background color. So try setting an imageview below ur movieplayer and if that continues to show black screen, add it above ur player.
When the user plays video, just hide ur imageview.

Show all the controls of MPMovieplayercontroller always-iphone

Anyway to show all the controls of MPMoviePlayerController always.
like below screenshot
Any suggestions please
Look at controlStyle property :
MPMovieControlStyleEmbedded Controls for an embedded view are
displayed. The controls include a start/pause button, a scrubber bar,
and a button for toggling between fullscreen and embedded display
modes.
MPMovieControlStyleFullscreen Controls for fullscreen playback are
displayed. The controls include a start/pause button, a scrubber bar,
forward and reverse seeking buttons, a button for toggling between
fullscreen and embedded display modes, a button for toggling the
aspect fill mode, and a Done button. Tapping the done button pauses
the video and exits fullscreen mode.

How can i set title for MPMoviePlayerController

In my application i want to set the title for the video (At the time of video playing). How do I do this?
You can try placing a UILabel over the movie player's view

I want to use an overlay for the UIImagePickerController, but I want the shutter animation

I am using the UIImagePickerController with an overlay view so I can have some custom controls. I notice that when the user clicks the "Capture" button and I call [imagePicker takePicture], the shutter animation doesn't occur. The effect is that I see the view sort of freeze and then continue in camera mode for a second before the image is captured and I display it over the camera view.
Make sense?
So, in other words, when the UIImagePickerController is initially presented, you see the shutter animation open up to reveal the camera, but when using overlay views and hiding camera controls, when I take the picture I don't see it. Would really like to. :-(
Any ideas?
There is currently now way to do this with the built in UIImagePicker animation. You would have to use AVFoundation and roll your own capture animation whenever you take the picture