Apple releases JavaScript API for playing Live Photos on the web | iLounge News

News

Apple releases JavaScript API for playing Live Photos on the web

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.

Comments

Related Stories

Subscribe to iLounge Weekly

Recent News

Recent Reviews

Recent Articles

Sign up for the iLounge Weekly Newsletter

iLounge is an independent resource for all things iPod, iPhone, iPad, and beyond.
iPod, iPhone, iPad, iTunes, Apple TV, Mac, and the Apple logo are trademarks of Apple Inc.
iLounge is © 2001 - 2017 iLounge, Inc. All Rights Reserved. Terms of Use | Privacy Policy