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
load()
- Source:
Loads the media for the video and preroll
play()
- Source:
Starts Live Photo playback from the beginning, if it is not already playing
stop()
- Source:
Stops Live Photo playback and returns to the inactive state
preview()
- Source:
Plays the Live Photo preview, which is about one second starting from the still image time