How to check that DeepAR has started playing video on canvas?

DeepAR takes quite a lot of time to start rendering something on canvas.

I want to make canvas hidden and show raw video underneath until DeepAR starts rendering (logo has appeard).

The web SDK resolves the promise returned by the initialize function when it is finished initializing.

Yes, but I’ve noticed that DeepAR logo appears after initialization with some delay.

And it takes some time to think after a call to setVideoElement