LivePhotosKit JS

RSS for tag

Play Live Photos on the web using LivePhotosKit JS.

Posts under LivePhotosKit JS tag

11 Posts

Post

Replies

Boosts

Views

Activity

Live Photos created with PHLivePhoto API show "Motion not available" when setting as wallpaper
I'm creating Live Photos programmatically in my app using the Photos and AVFoundation frameworks. While the Live Photos work perfectly in the Photos app (long press shows motion), users cannot set them as motion wallpapers. The system shows "Motion not available" message. Here's my approach for creating Live Photos: // 1. Create video with required metadata let writer = try AVAssetWriter(outputURL: videoURL, fileType: .mov) let contentIdentifier = AVMutableMetadataItem() contentIdentifier.identifier = .quickTimeMetadataContentIdentifier contentIdentifier.value = assetIdentifier as NSString writer.metadata = [contentIdentifier] // Video settings: 882x1920, H.264, 30fps, 2 seconds // Added still-image-time metadata at middle frame // 2. Create HEIC image with asset identifier var makerAppleDict: [String: Any] = [:] makerAppleDict["17"] = assetIdentifier // Required key for Live Photo metadata[kCGImagePropertyMakerAppleDictionary as String] = makerAppleDict // 3. Generate Live Photo PHLivePhoto.request( withResourceFileURLs: [photoURL, videoURL], placeholderImage: nil, targetSize: .zero, contentMode: .aspectFit ) { livePhoto, info in // Success - Live Photo created } // 4. Save to Photos library PHAssetCreationRequest.forAsset().addResource(with: .photo, fileURL: photoURL, options: nil) PHAssetCreationRequest.forAsset().addResource(with: .pairedVideo, fileURL: videoURL, options: nil) What I've Tried Matching exact video specifications from Camera app (882x1920, H.264, 30fps) Adding all documented metadata (content identifier, still-image-time) Testing various video durations (1.5s, 2s, 3s) Different image formats (HEIC, JPEG) Comparing with exiftool against working Live Photos Expected Behavior Live Photos created programmatically should be eligible for motion wallpapers, just like those from the Camera app. Actual Behavior System shows "Motion not available" and only allows setting as static wallpaper. Any insights or workarounds would be greatly appreciated. This is affecting our users who want to use their created content as wallpapers. Questions Are there additional undocumented requirements for Live Photos to be wallpaper-eligible? Is this a deliberate restriction for third-party apps, or a bug? Has anyone successfully created Live Photos that work as motion wallpapers? Environment iOS 17.0 - 18.1 Xcode 16.0 Tested on iPhone 16 Pro
1
1
671
Aug ’25
LivePhoto not applying on iOS 17+ as live wallpaper
Hi fellow iOS developers! 👋 I've written a Swift code that converts a video (from a URL) into a Live Photo after downloading it. The conversion process seems fine, but when I try to set the generated Live Photo as a wallpaper on iOS 17+, it shows the message 'Motion not Available.' Has anyone else experienced this issue or know why this might be happening? Could it be related to changes in iOS 17 Live Photo handling or the generated file structure? Any help or suggestions would be greatly appreciated! 🙏
1
1
585
Nov ’24
Request for Access to Apple Photos API
Hello, I'm currently investigating the possibility of accessing my photos stored on my iCloud via a dedicated API, in order to create a photo portfolio. However, after extensive research, I haven't found any documentation or public API allowing such access. I wonder if there are any future plans to make such an API available to third-party developers. I would be grateful if you could provide me with information regarding the possibility of accessing an API for Apple Photos or any other solution you might suggest. Thank you for your attention and assistance. Yours sincerely Owen
0
0
882
Nov ’23
livePhotosKit.js does not correctly playback videos finer than 480P
I am unable to get FULL PlaybackStyle to work correctly with any video with better quality than 480p. LOOP works great with all formats. Please see the sample site located in the following url: https://danandassana.com/livePhotos As you see, the video playback is chunky: it pauses for about a second for every 0.4 seconds of playback. I have tried all combination and permutation of resolution and fps up to 4k/60fps. What am I doing wrong? 😳
1
0
825
Jan ’23
Live Photo became still photos in photo memories: iOS 15
In iOS 14, Live Photo could display as video in the photo album generated memories, but in iOS 15, the Live Photo is display as still photo in the memories, made it more like a slide show instead of lively memories like it used to be. The great feature of Live Photo should be harness and display as video in the memories generated by the photo app. Live Photo became still photo in memories, really downgraded the value of the photos and the memories.
1
0
1.4k
Jun ’22
Receive Live camera flow with Bluetooth from an iPhone to an other one
First, thanks for your time ! I'm trying to code my own app, she had to link 2 iPhone with Bluetooth. The first iPhone had to send live camera flow to the other with Bluetooth link when the app is running in sender mode. The second iPhone had to show the live, and offer the possibility to take instant photos when the app is running in receiver mode. I don't want to install an app because I want to include other special actions in the future. First question : May I use swift or C ? If you need more details, don't hesitate! Arthur
0
0
1.2k
May ’22
Live Photos created with PHLivePhoto API show "Motion not available" when setting as wallpaper
I'm creating Live Photos programmatically in my app using the Photos and AVFoundation frameworks. While the Live Photos work perfectly in the Photos app (long press shows motion), users cannot set them as motion wallpapers. The system shows "Motion not available" message. Here's my approach for creating Live Photos: // 1. Create video with required metadata let writer = try AVAssetWriter(outputURL: videoURL, fileType: .mov) let contentIdentifier = AVMutableMetadataItem() contentIdentifier.identifier = .quickTimeMetadataContentIdentifier contentIdentifier.value = assetIdentifier as NSString writer.metadata = [contentIdentifier] // Video settings: 882x1920, H.264, 30fps, 2 seconds // Added still-image-time metadata at middle frame // 2. Create HEIC image with asset identifier var makerAppleDict: [String: Any] = [:] makerAppleDict["17"] = assetIdentifier // Required key for Live Photo metadata[kCGImagePropertyMakerAppleDictionary as String] = makerAppleDict // 3. Generate Live Photo PHLivePhoto.request( withResourceFileURLs: [photoURL, videoURL], placeholderImage: nil, targetSize: .zero, contentMode: .aspectFit ) { livePhoto, info in // Success - Live Photo created } // 4. Save to Photos library PHAssetCreationRequest.forAsset().addResource(with: .photo, fileURL: photoURL, options: nil) PHAssetCreationRequest.forAsset().addResource(with: .pairedVideo, fileURL: videoURL, options: nil) What I've Tried Matching exact video specifications from Camera app (882x1920, H.264, 30fps) Adding all documented metadata (content identifier, still-image-time) Testing various video durations (1.5s, 2s, 3s) Different image formats (HEIC, JPEG) Comparing with exiftool against working Live Photos Expected Behavior Live Photos created programmatically should be eligible for motion wallpapers, just like those from the Camera app. Actual Behavior System shows "Motion not available" and only allows setting as static wallpaper. Any insights or workarounds would be greatly appreciated. This is affecting our users who want to use their created content as wallpapers. Questions Are there additional undocumented requirements for Live Photos to be wallpaper-eligible? Is this a deliberate restriction for third-party apps, or a bug? Has anyone successfully created Live Photos that work as motion wallpapers? Environment iOS 17.0 - 18.1 Xcode 16.0 Tested on iPhone 16 Pro
Replies
1
Boosts
1
Views
671
Activity
Aug ’25
LivePhoto not applying on iOS 17+ as live wallpaper
Hi fellow iOS developers! 👋 I've written a Swift code that converts a video (from a URL) into a Live Photo after downloading it. The conversion process seems fine, but when I try to set the generated Live Photo as a wallpaper on iOS 17+, it shows the message 'Motion not Available.' Has anyone else experienced this issue or know why this might be happening? Could it be related to changes in iOS 17 Live Photo handling or the generated file structure? Any help or suggestions would be greatly appreciated! 🙏
Replies
1
Boosts
1
Views
585
Activity
Nov ’24
Request for Access to Apple Photos API
Hello, I'm currently investigating the possibility of accessing my photos stored on my iCloud via a dedicated API, in order to create a photo portfolio. However, after extensive research, I haven't found any documentation or public API allowing such access. I wonder if there are any future plans to make such an API available to third-party developers. I would be grateful if you could provide me with information regarding the possibility of accessing an API for Apple Photos or any other solution you might suggest. Thank you for your attention and assistance. Yours sincerely Owen
Replies
0
Boosts
0
Views
882
Activity
Nov ’23
iCloud Photo library API
Hello, I want to create a photo portfolio (in VueJS) and I'd like to use my icloud photo library to store the photos. Is there an API that allows me to access one or more albums in my photo library?
Replies
0
Boosts
0
Views
889
Activity
Oct ’23
IOS 17 Live Wallpapers doesn't work properly
Everytime I try to set a live wallpaper, I always get an error no matter what it is saying, "Motion from this live photo is not supported as a wallpaper". I have used only live photos AND ones I just made/got on IOS 17. None work... is this feature broken or am I doing something wrong?
Replies
2
Boosts
0
Views
1.6k
Activity
Sep ’23
Live wallpaper
I really missed the Live Photo wallpaper I really want it back pls
Replies
0
Boosts
1
Views
571
Activity
Apr ’23
livePhotosKit.js does not correctly playback videos finer than 480P
I am unable to get FULL PlaybackStyle to work correctly with any video with better quality than 480p. LOOP works great with all formats. Please see the sample site located in the following url: https://danandassana.com/livePhotos As you see, the video playback is chunky: it pauses for about a second for every 0.4 seconds of playback. I have tried all combination and permutation of resolution and fps up to 4k/60fps. What am I doing wrong? 😳
Replies
1
Boosts
0
Views
825
Activity
Jan ’23
Can’t save or post gifs
I’m on iOS 15 and for a long time I haven’t been able to save or post gifs iv tried using safari and messing around my settings
Replies
0
Boosts
0
Views
819
Activity
Jun ’22
Live Photo became still photos in photo memories: iOS 15
In iOS 14, Live Photo could display as video in the photo album generated memories, but in iOS 15, the Live Photo is display as still photo in the memories, made it more like a slide show instead of lively memories like it used to be. The great feature of Live Photo should be harness and display as video in the memories generated by the photo app. Live Photo became still photo in memories, really downgraded the value of the photos and the memories.
Replies
1
Boosts
0
Views
1.4k
Activity
Jun ’22
Receive Live camera flow with Bluetooth from an iPhone to an other one
First, thanks for your time ! I'm trying to code my own app, she had to link 2 iPhone with Bluetooth. The first iPhone had to send live camera flow to the other with Bluetooth link when the app is running in sender mode. The second iPhone had to show the live, and offer the possibility to take instant photos when the app is running in receiver mode. I don't want to install an app because I want to include other special actions in the future. First question : May I use swift or C ? If you need more details, don't hesitate! Arthur
Replies
0
Boosts
0
Views
1.2k
Activity
May ’22
Can't generate livePhoto
The same code can generate livePhoto in iOS 14, but can't generate livePhoto in iOS 15.1. Does anyone know how to solve this problem? please help me. thanks
Replies
0
Boosts
0
Views
707
Activity
Apr ’22