Apple has unveiled LivePhotosKit JS, a new JavaScript API that will allow web developers to incorporate support for playback of iOS Live Photos into their web pages. The API presents the player as a DOM element in a similar way to an image or video tag, and can be customized with photo and video resources and developers can choose to either control playback programmatically or provide controls to the end user.

The new API is also relatively easy for web developers to implement, requiring only that they embed the JavaScript in their webpage and then enable JavaScript strict mode; an NPM installer is also available. Inline players are then added to HTML blocks using declarative markup.
The new LivePhotosKit JS player is supported by most modern browsers, including Safari and Chrome on iOS and macOS, Chrome and Firefox on macOS and Windows, Edge and Internet Explorer 11 on Windows, and Chrome beta on Android devices.
.