m90 / seeThru

HTML5 video with alpha channel transparencies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem when using staticMask in React

cbcruk opened this issue · comments

If I try to use seethru with React, and the staticMask option is used, the canvas height value is cropped in half and the mask does not work.

The video and mask were tested with robbe.mp4, robbe-mask.png, seethru version 3.1.2, and used as an import method.
image

Note that there is no problem when used as a kolor.mp4 video.

I would appreciate your confirmation.

There was a mistake in option values.

seeThru.create('#video', {
  mask: '#mask',
})

I have modified this option value and confirmed it was working properly.
Thank You.