Post

Replies

Boosts

Views

Activity

LivePhoto not playing
Hi guys,I‘m facing a weird problem that when call LivePhotoView startplayBack at debug mode in Xcode,the livephotoview works as expected but under a release mode. I don't know why this happened , is there anyone has ever met the same situation? I'd be appreciated for your any kind of help, thank you. Both file path are correct , the only difference is the mode it runs. Bellow is the snap of my code: self.requestID = [PHLivePhoto requestLivePhotoWithResourceFileURLs:@[[NSURL fileURLWithPath:imagePath], [NSURL fileURLWithPath:videoPath]] placeholderImage:[UIImage imageWithContentsOfFile:imagePath] targetSize:self.bounds.size contentMode:PHImageContentModeAspectFill resultHandler:^(PHLivePhoto * _Nullable livePhoto, NSDictionary * _Nonnull info) { if (livePhoto) { self.typeView.isGray = NO; self.livePhotoView.livePhoto = livePhoto; [self.livePhotoView startPlaybackWithStyle:PHLivePhotoViewPlaybackStyleHint]; if (self.gotLivePhoto) { self.gotLivePhoto(); } } }];
0
0
234
Aug ’22