Unable to access property of VideoPlayer

According to the documentation I should be able to access isPlaying property of VideoPlayer using this code:

let isPlaying = $w("#mainVideoPlayer").isPlaying

However, after copy-pasting the snippet from the documentation I’m getting the following error:

I double checked that the “mainVideoPlayer” is really the ID of my VideoPlayer component:

Is there anyone who can point me to the right direction?

Thank you.

Are you you sure you used a VideoPlayer and not an iframe (embedded widget) that loads a video?

I’m not 100% sure since I don’t really know how to check it. I’m attaching a screenshot from my editor, hopefully it can be decided from that. I highlighted the some visible IDs.

It’s not a VideoPlayer. It is Wix Video app.
If you wish to use onPlay, delete this element and use VideoPlayer instead.

I see. Sorry to bother you. Unfortunately, it’s quite unsuitable for us to replace this element, because it has some properties we like and need.

I made some research and found this feature request . It seems that currently it is really not possible to access properties of the Wix Video app (like isPlaying ).

Yes, that’s the current status. I don’t know what your requested features are, but try to see, maybe you can apply them to VideoPlayer using code.