Thumbnail / image screen shot for video - iphone

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.

Related

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

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.

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.

Populate UITableView with youtube thumbnail

I have an app that has a video section, the idea is to have a tableview that will display a youtube thumbnail and infos about the video on each row. I know how to get the videos on a regular view with UIWebView but how can i have that on a cell?
Use the gdata-objective-c client. It supports the YouTube data API so you can get thumbnail and other info about a video using this library.

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.