how to Show and Hide Flash icon as per environments using AVCaptureSession? - iphone

I am using AVCaptureSession to take a photo and Record a Video. how can i show and Hide Flash icon as per environments(light or dark) in my Camera View

Related

Hide shrink button in full screen mode on iOS

I am playing YouTube videos within my app via a UIWebView. I am able to load the videos and play them full screen on the device. I have disabled allowInlineMediaPlay, however, when the video goes full screen, there is a shrink button on the media player. When the shrink button is pressed, the video goes out of full screen mode and shrinks back to its original size but continues playing, I want the video to stop playing if it shrinks.
Ideally, I'd like to remove the shrink button altogether and just leave the Done button.
Is it possible to remove the shrink button from the media player?

iPhone html5 video avoid native fullscreen when using airplay on Safari

I know that allowsInlineMediaPlayback only works on iPad, but my goal is to play the video on AppleTV, while I am displaying some dynamic html content on Safari. I basically want to get rid of the airplay indicator screen or hide it somehow, or open a new tab while the video keeps playing or kind of minimize it display just a small pause button on the bottom of my html page while the video is playing on AppleTV.
If this is not possible to be done on iPhone, can it be done on iPad ? I want to have as much space as possible on the safari page and just a pause button for the video.

Thumbnail / image screen shot for video

I have an App which allows the user to play a selection of videos.
What I would like is to have one or two thumbnails shown on my view which shows the user that if they click on these images it will launch a video.
How do I capture a screen shot from the video to use as an thumbnail or do I have to user some other random image?
Try using thumbnailImageAtTime:timeOption with an MPMoviePlayerController.
You can also request to fetch multiple Thumbnails asynchronously (requestThumbnailImagesAtTimes:timeOption:). In that case you have to register an observer for the MPMoviePlayerThumbnailImageRequestDidFinishNotification.

IPhone UIImagepicker with camera showing camera roll thumbnail like default camera app?

im working in iphone's camera app, using UIImagePicker to launch the camera.
Everything goes well, just a need to use the default controls showed in the camera app in iphone(little thumbnail from the last pic in camera roll and take photo buttons) and its animation(take and send the picture to the left bottom thumbnail), not default in UIImagePicker (cancel and take photo buttons).
How i can do that?
thankz :D
You can't do that. What you should do is present a UIActionSheet and ask if the user wants to get a photo from the Camera or their Photo Albums.
You may try to use the cameraOverlayView property or create your own custom controls duplicating the default controls (hiding the default controls with showsCameraControls = NO).

Customizing the screen of Movieplayer in iPhone

I've few doubts regarding movie player app
How can I customize the screen size. I want only video or movie to be played only to half the screen and I want to add custom controls buttons to the remaining half of movie player.
In movie player example overlay view is there but how to change the name of the button and label in that and I'm unable to do that.
The MPMovePlayer UI cannot be modified. It plays fullscreen video, and provides the default controls. There's currently no way to do what you need in the official iPhone SDK.
Use this link for video player customization:
https://developer.apple.com/library/ios/samplecode/MoviePlayer_iPhone/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007798
download sample code and modify accordingly.