Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


thumbnail from .mov file from parse

i have created an account on parse and i have uploaded two default videos onto the backend myself not uploading them through an IOS App i uploaded them when i create the backend, my problem is that i can not display a thumbnail image of the video file .mov i have been stuck on this for days back and forth going to parse.com forums and now i have come here to ask could you help me please.

P.S. i have been doing programming for about 13 - 15 months so please have patience if im describing questions in the wrong context thank you.

im trying to display the thumbnail of the .mov file in a cell then once cell is touched it will play in a different viewController

3 Answers

what the hell i looked at other peoples questions and their getting their answers form staff and my question has not been answer dont yous know of anything that involves this if so just let me know dont ignore the question

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Hi Damon,

Sorry you're feeling frustrated, but please do have some patience. We try to be as responsive as possible on the Forum, and we get an awful lot of help from students, but it does take us time to work through issues, especially over the weekend when the Treehouse staff is off. :)

Anyhow, I'm assuming you're on iOS 7, where the thumbnailImageAtTime:timeOption: method we covered in the video has since been deprecated, meaning that it may not work from iOS 7 onward. The best workaround I've found is listed in the Teacher's Notes section on that video page. It's a link to a suggestion on StackOverflow. Let us know if that helps or if you need further assistance.

So this:

AVURLAsset *asset1 = [[AVURLAsset alloc] initWithURL:partOneUrl options:nil]; AVAssetImageGenerator *generate1 = [[AVAssetImageGenerator alloc] initWithAsset:asset1]; generate1.appliesPreferredTrackTransform = YES; NSError *err = NULL; CMTime time = CMTimeMake(1, 2); CGImageRef oneRef = [generate1 copyCGImageAtTime:time actualTime:NULL error:&err]; UIImage *one = [[UIImage alloc] initWithCGImage:oneRef]; [_firstImage setImage:one]; _firstImage.contentMode = UIViewContentModeScaleAspectFit;

should be its own method ok, do you show how to get the partOneUrl as an NSURL in one of the tutorials but then dont you have to use PFFile then turn that from a PFQuery to an PFFile then to NSURL or how is the process because i looked at parse.com but im not getting anywhere with them and their documentation, oh also is there a book you recommend for me to read for iphone development