Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.