It depends of what you are doing. If you make for instance a wipe between a video and an lottie you see differences between the video and lottie file using a timer like on @rrebuffo video-freqtimeupdate. Because if you use a timer it will not sync the 2. Because it have a delay of some milliseconds, the video frame appears always before the lottie, that is visible.
We are using VideoFrame.js and changing the lottie on each frame callback.
var video = VideoFrame({
id: 'video',
frameRate: 25,
callback: function (frame) {
anim.goToAndStop(frame, true);
}
});
Using lottie anim.goToAndStop(frame, true); on each tick.
Maybe with requestAnimationFrame it will work, I will test it.
You can tell us that we can make the wipe with html but we already receive it by after effects so we do not have to recreate the wipe speed an time.
I will ask to create example of what I’m talking. Can not send this graphics. The clip-path I have to get old code, we stopped using because the templates were freezing.