Live Photos, Apple’s answer to the GIF, is officially coming to the Web.
Use the LivePhotosKit JS library to play Live Photos on your web pages.
Although meant for the web, the LivePhotos API is available for apps, as well. Developers will need to familiarize themselves with two classes,
LivePhotosKit.Player. The former is the name for the library itself, while the latter is simply the player for Live Photos.
From there, two enumerations come into play:
LivePhotosKit.Errors handles – well, errors in playback;
LivePhotosKit.PlaybackStyle lets you choose either a snippet of the Live Photo for playback or the entire thing (good for thumbnail previews versus full images).
If you need a bit of hand-holding to get up and running, Apple has a sample project you can pick through. It’s based on Photos, Apple’s own image-management app, and supports albums and collections as well as display options and photo editing. The documentation for the Live Photos API is also really thorough.
This also brings Live Photos to Android. The API is supported on Chrome beta for Android, and Chrome (stable) and Safari for iOS. Windows and macOS will get Live Photos via Chrome and Firefox in addition to their respective proprietary browsers, Internet Explorer 11 and Safari.