Questions tagged [phlivephoto]
55 questions
0
votes
0 answers
iOS - Not able to save .MOV & .jpg as LivePhoto - Showing Error NSCocoaErrorDomain Code=-1 [Objective C]
I want to create live photo programatically with mixture of jpg and MOV. below is my code for implementation
These are links for files
jpg File - http://18.220.72.107/hd_wallpapers/images/animation/43625_wallpaper-2.jpg
MOV File -…

rathodbhavikk
- 416
- 7
- 20
0
votes
0 answers
How to save Live Photo to gallery from URL?
I am currently working on saving live images from an url. But there is not much documents on internet and im stuck to this.
I have already checked this code which is really helpful but unfortunately it only converts the video you record to Live…

Mr. T.
- 93
- 11
0
votes
1 answer
How can I save a PHLivePhoto to photo library?
I am new in Swift and I am developing an app that picks a live photo from the library and displays it on an imageview, until that part it works, but the imageview is on top of another imageview that has a custom image(like a background image). By…
0
votes
1 answer
Why does video has a smaller size than photo for an iOS live-photo
I am working on an iOS project with live-photos.
Live-photo is a combination of a real photo and a small video of 3 seconds.
The goal of this feature is to let the user choose which is the best picture in the video.
I have made some tests and i see…

Bob5421
- 7,757
- 14
- 81
- 175
0
votes
1 answer
How can I save an PHLivePhoto to iCloud using CloudKit API
Right now I am using the following code.But something weird is happening.
PHLivePhoto *livePhoto = .....;
NSString *fileName = [[NSProcessInfo processInfo] globallyUniqueString];
NSURL *url = [NSURL fileURLWithPath: NSTemporaryDirectory()];
url =…

Li Fumin
- 1,383
- 2
- 15
- 31
0
votes
0 answers
how to load PHLivePhoto from server url?
NSURL *url = [NSURL URLWithString:@"http://192.168.1.50/download/1.jpg"];
//NSURL *url = [NSURL URLWithString:@"http://192.168.1.50/download/3.mov"];
NSURLRequest *request = [[NSURLRequest alloc]initWithURL:url…

jerry
- 11
- 3
0
votes
2 answers
How to convert PHAsset to PHLivePhoto
I have PHAsset and I want to get PHLivePhoto.
PHAsset is PHLivePhoto's asset.
I know this Function.
/// Requests a Live Photo from the given resource URLs. The result handler will be called multiple times to deliver new PHLivePhoto instances with…

minjoongkim
- 121
- 1
- 12
0
votes
1 answer
PHLivePhotoView and backwards compatibility with UILongPressGestureRecognizer
When using PHLivePhotoView, one does not need to add a 3D Touch gesture to this view to trigger playback of the Live Photo. This functionality is built right in. Also know that Live Photos can be played on devices that don't support 3D Touch, just…

Jordan H
- 52,571
- 37
- 201
- 351
-1
votes
1 answer
Quicklook for Live Photo?
The docs says you can use Quicklook to view Live Photos. Overview section
https://developer.apple.com/documentation/quicklook
I searched and could not an example on how to do it in swift.
Seems like have to use PHLivePhotoView to view Live Photo.
Is…

sydney888
- 1
- 1
-1
votes
1 answer
How to save a video to a URL in Swift Playgrounds
I'm trying to instantiate a PHLivePhoto but whenever I try to save the video that constitutes the live photo I can't get it to work.
Here's a little code snippet I wrote that handles exporting the video:
public func exportFilteredVideo(to outputURL:…

Harish
- 1,374
- 17
- 39