Apple’s developer website now offers info on a Live Photos API [application programming interface] dubbed LivePhotosKit building apps for macOS, iOS and tvOS. Developer can also use the LivePhotosKit JS library to play Live Photos on web pages.
![](/wp-content/uploads/archive/825C94D5-B81E-49AE-99FE-DDA23251E814.jpeg)
![](/wp-content/uploads/archive/825C94D5-B81E-49AE-99FE-DDA23251E814.jpeg)
The JavaScript API presents the player in the form of a DOM element, much like an image or video tag, which can be configured with photo and video resources and other options, and have its playback controlled either programmatically by the consuming developer, or via pre-provided controls by the browsing end-user. The DOM is the way Javascript sees its containing pages’ data.
Live Photos records what happens 1.5 seconds before and after you take a picture. The result is a photo but one with movement and sound. You take a Live Photo just like you do a traditional photo on an iPhone 6s and later.