Add short videos that can be played by clicking.
The URL of the video to play. Has to start with https://
and has to end with a video extension such as .mp4
.
(Optional)
Let's the user set a customized thumbnail for the video.
This is used to determine how the image is blended with whatever is behind it. The available options are Combine
, Multiply
, and Screen
.
String
; Has to start with https://
and has to end with a video extension such as .mp4
.
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://..."})
""
String
; Links must be https://
and must either be a .png,.gif,.jpg
.
feature.get('previewUrl')
// returns: "https://..."
feature.set({'previewUrl':"https://..."})
""
String
;
feature.get('type')
/* or */
feature.type
// returns: 'video'
feature.play()
plays the video
feature.pause()
pauses the video