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.
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.