How can i set title for MPMoviePlayerController - iphone

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

Related

How to animate UISlider Handle like in Apple's Music App?

I have a custom image as the handle for my UISlider, using the following code:
slider.setThumbImage(UIImage(named: "scrollerHandle")!, forState: .normal)
In the default music app on iOS, when you want to change the position of a song and you click on the music slider, the handle animates and gets bigger, then when you let it go it shrinks once again. How does one do this with a UISlider?
I greatly appreciate every body's help.
Image of the slider in the music app

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.

displaying iphone movie controlls on touch

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?

MPMoviePlayer Orientation

I am playing MP3 audio via a URL using the MPMoviePlayer. But when it plays, it flips to Landscape layout, and I would like it to remain in portrait layout.
Any ideas?
Thanks,
John
You could use an ugly hack and place it in a UIWebView, but this functionality really should be in MPMoviePlayer.
Unfortunately, the movie player can only play movies in Landscape. You'll have to reencode your movies rotated to 480x320 instead of 320x480. After you play the movie, it changes the status bar's orientation, so you need to flip that back with setStatusBarOrientation:animated::
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationPortrait animated:NO];