Can I include insside of mockup a video?

Can I include it inside the mockup video?
For instance, I have this mockup, and I need to put a video file inside of it.

Hi @ihorzhu94

The quick answer is no, you can’t embed a video in a json using lottie.

You can try to turn the video into an image sequence, and export the image sequence as frames, and have those frames embedded but this you wont have a small file and it will likely take forever to load.

But, what is the intended target? An app or a website? It would be easier to just embed a video player inside of a div nested inside the div where the Lottie element is existing?

Rasterize images are the opposite of what Lottie is supposed to be used for- but there are cumbersome work arounds. Entirely depends on the target destination.

1 Like

Thank for the feedback. It’s for a website.

But, what is the intended target? An app or a website? It would be easier to just embed a video player inside of a div nested inside the div where the Lottie element is existing?

This is a good idea, thanks!

1 Like