Playing a video in UIView( subview ) - iphone

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.

Related

How do I display the back camera live video feed to an UIImageView?

I have been messing around with the AVFoundation framework for iPhone, but I can't seem to be able to get the information from the back video camera to display on an UIImageView I have in interface builder.
This is a single view application.
I just want to get what the back camera sees displayed on an UIImageView.
Thank you!
You don't need a UIImageView, just a UIView.
Take a look at AVCaptureSession and AVCaptureDeviceInput in AVFoundation. With these you can access the cameras.
AVCaptureVideoPreviewLayer can be used to draw the camera input to a UIView.
http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVCaptureVideoPreviewLayer_Class/Reference/Reference.html
Hopefully this answers your question: http://www.ios-developer.net/iphone-ipad-programmer/development/camera/camera-preview-on-a-view-controller
Please let me know if you would like any more information!

Can I overlay animated gifs with UIImageView on an iPhone?

I want to overlay an animated gif onto the camera preview on an iPhone with UIImageView.
Currently, following this post: http://www.musicalgeometry.com/?p=1273 I am able to to so with PNGs.
How can I do this with animated gifs? Specifically, over the live view of the camera?
UIImageView doesn't support animated gifs. Checkout this post on how to deconstruct an animated gif and use it with a UIImageView.
Link
EDIT:
Here is a link to the docs on a camera overlay view.
http://developer.apple.com/library/ios/documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html#//apple_ref/doc/uid/TP40007070-CH3-SW21

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

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];