How to show image of youtube video after adding url link in objective c - uialertview

I have an application that is working with one UI Image view. On clicking on the image view i get a UI alert view asking for a video link . Once you have mentioned the link the UI Image view should contain the video image of the particular selected video.
What i have is a working till accepting the URL link , but the video image is not getting rendered in the UI Image view.

Related

uiwebview going fullscreen automatically when loading page with strict multimedia

I created a uitableview with a uiwebview that loads a webpage that goes directly to the link of a multimedia file, but I don't want it to automatically go fullscreen. Simply load it and then allow the user to play it and then go fullscreen if he wants.
You cant do that using UIWebView, what you can do, is to change the link to an image that contains an play button overlay image (like youtube does) and then when the user clicks on that image, start playing the video.

Adding a YouTube video to my application

I am trying to embed a YouTube video in my application, and I am going through this tutorial as a start. I get the red screen when I run it on the stimulator, so I presume everything went well.
Now when the user taps on the screen while the video is playing I need a toolbar to appear, with a slider showing the length of the video (and the user could slide to his/her desired time on the video).
I need to know if this feature comes by default when you embed the YoutTube video, or do i have to code it? If i have to code it how should i do it? Any sample codes or tutorial?
The only way to show a YouTube video in an iOS app is by having it inside a UIWebView (that is what the tutorial walks you through). Once the user taps the "play" button, the video should go full screen and automatically present the standard video controls that you see when you play videos on iOS.
Youtube provides the HTML code for embedding videos in web pages. This HTML code will also produce a video when embedded in a UIWebView. While the video is playing, all of the standard Youtube video controls (Play, Pause, Time Slider) should also show up in the UIWebView.

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.

How to embed a small camera preview, and then save the whole screenshot image in iphone

I want to put a background image first, and then put a small camera preview view on the top of it.
When user clicked the ok button, a screenshot of the whole merged picture could be reproduced. I remember that some apps in appstore did this, just want to know how to achieve this in code.
Place your background image.. Over that place your imagepicker controller..
take screenshot using UIGetScreenImage

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.