videoSrc
A reference to the source of the video component of this Live Photo.
Declaration
attribute String,ArrayBuffer videoSrc;Discussion
Set this property to one of three types of value:
A string URL
An
ArrayBufferinstance that may already be availablenull(to clear the Player’s video)
Changing this value causes the video property (the HTMLVideoElement consumed by the Player for rendering) to be initially set to null. If the new value assigned is a string URL or an ArrayBuffer, a round of loading and decoding activity begins, eventually resulting in the video property being populated with the newly loaded video. Only a string URL produces a network request as part of this loading process.
Changing this value while loading activity from a previous assignment is in progress causes the previous loading activity to abort.
Once the file associated with this property is obtained, it is parsed to automatically determine the values of the photoTime and frameTimes properties. These properties must themselves have their values before playback can begin.
Note: If, due to the architecture of your web app or web page, a <video> element is available and already sufficiently loaded to be seekable, it might be written directly to the video property. However, when you bypass videoSrc in this manner, photoTime and frameTimes are not automatically detected. You have to provide those values by some other means. (see their documentation for more information).
Declarative markup attribute: data-video-src