The LivePhotosKit JS API is available on NPM.
Some of the parameters that can be used include the locations of the photo and video components of a Live Photo, whether or not the player will prefetch data before the user attempts to begin playback, if the playback controls are enabled for the user and more.
The player is supported on the following browsers:
- iOS—Safari and Chrome
- macOS—Safari, Chrome and Firefox
- Android (performance depends on device)—Chrome (beta)
- Windows—Chrome, Firefox, Edge and Internet Explorer 11
“If the photo takes too long, it will not be able to show the progress badge,“ explains the firm. “Downsizing assets will greatly improve performance and reduce bandwidth usage.â€
For more information, visit developer.apple.com/live-photos.