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

iOS Build a Self-Destructing Message iPhone App Retrieving and Viewing Data from Parse.com Viewing Videos Using MPMoviePlayerController

Bradley Maskell
Bradley Maskell
8,858 Points

Video playback weirdness... shows up as two images with a smaller video image in front on iPhone 6.

In my *newImage in CamraViewController.m I changed the toWidth to 750.0f and andHeight to 1334.0f to match the screen size on the iPhone 6 but it didn't change how the video playback looks. What happens now when I play a video on the IP6 is a large still snapshot of the video with a smaller 320x480 video playing on top of it. I updated the deprecated thumbnailImage method and added the one that Ben and Amit provided. Any ideas why this might be happening? My last guess is that it's something that's happening with this:

  • (UIImage *)resizeImage:(UIImage *)image toWidth:(float)width andHeight:(float)height { CGSize newSize = CGSizeMake(width, height); CGRect newRectangle = CGRectMake(0, 0, width, height); UIGraphicsBeginImageContext(newSize); [image drawInRect:newRectangle]; UIImage *resizedImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext();

    return resizedImage; }

But I really don't see how that could be.

1 Answer

Bradley, here is a full template for the social network application: Click Here.