summaryrefslogtreecommitdiffstats
path: root/src/constants.js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2023-04-12 05:28:03 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2023-04-12 06:16:14 +0200
commit8545bb959093d571fef39aee3b22c80121170c24 (patch)
treeb779ae48f118e372d6214c2509875833a3ca0900 /src/constants.js
parent8d0fac5ac0913ec447103f7f2fbd506bed472c43 (diff)
Add support to use video files as virtual backgrounds
Animated images, like GIFs, can not be used for animated virtual backgrounds, as only the first frame of the image is taken into account when drawing an HTMLImageElement to a canvas. To overcome this now videos can be used too as virtual backgrounds by providing the URL of the video file, in the same way as with images. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/constants.js')
-rw-r--r--src/constants.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/constants.js b/src/constants.js
index c432e37c6..1db1be1e3 100644
--- a/src/constants.js
+++ b/src/constants.js
@@ -209,6 +209,7 @@ export const VIRTUAL_BACKGROUND = {
BACKGROUND_TYPE: {
BLUR: 'blur',
IMAGE: 'image',
+ VIDEO: 'video',
VIDEO_STREAM: 'video-stream',
},
BLUR_STRENGTH: {