Ren Xiao

Results 3 comments of Ren Xiao

@e-massa i think the time depends on the video itself,for some video ,all frame is key frame,so it can be very exactly,but others may be not ,so the best solution...

try the code below ``` NSDictionary *settings = @{ AVVideoCodecKey: AVVideoCodecH264, AVVideoWidthKey: @(self.size.width * [UIScreen mainScreen].scale), AVVideoHeightKey: @(self.size.height* [UIScreen mainScreen].scale) }; ```

try the change code ``` - (UIImage *)imageFromView:(UIView *)view { UIGraphicsBeginImageContextWithOptions(view.frame.size , YES , 0 ); // if ([view respondsToSelector:@selector(drawViewHierarchyInRect:afterScreenUpdates:)]) { // [view drawViewHierarchyInRect:view.bounds afterScreenUpdates:YES]; // } else { [view.layer...