Skip to main content

Video

Add short videos.

Video​

Add short videos that can be played by clicking.

video-feature.png

Editor​

video_editor_v4.25.png

URL​

The URL of the video to play. Has to start with https:// and has to end with a video extension such as .mp4.

Image preview​

(Optional) Let's the user set a customized thumbnail for the video.

Blend mode​

This is used to determine how the image is blended with whatever is behind it. The available options are Combine, Multiply, and Screen.

Scripting Properties​

Scripting Properties {.tabset}​

url​

String; Has to start with https:// and has to end with a video extension such as .mp4.

get()​

feature.get('url')
// returns: "https://..."

set()​

feature.set({'url':"https://..."})

default​

""

previewUrl​

String; Links must be https:// and must either be a .png,.gif,.jpg.

get()​

feature.get('previewUrl')
// returns: "https://..."

set()​

feature.set({'previewUrl':"https://..."})

default​

""

type​

String;

get()​

feature.get('type')
/* or */
feature.type

// returns: 'video'

Scripting methods​

Scripting methods {.tabset}​

play()​

feature.play()

plays the video

pause()​

feature.pause()

pauses the video

stop()​

feature.stop()

stops the videos