LivePhoto

Constructor

new LivePhoto(keyframeUrl, videoUrl, stillImageTime, [options])

Source:
Parameters:
Name Type Attributes Description
keyframeUrl string

URL of the keyframe image asset

videoUrl string

URL of the Live Photo video asset

stillImageTime number

time (in seconds) that corresponds to the position of the keyframe in the video

options Object
optional

additional Live Photo options

Methods

play()

Source:

Starts Live Photo playback from the beginning, if it is not already playing

preview()

Source:

Plays the Live Photo preview, which is about one second starting from the still image time