Alert when the videos start playing VideoJS

I have a VueJS application and am playing a video using a VideoJS player. I need to track and fire an alert when the player starts playing the video. I need help figuring out a way to do this. I am initializing my video player using this code.
this.player = videojs(this.$refs.videoPlayer, this.options, () => {
this.player.log(‘onPlayerReady’, this);

You can use the alert keyword to display the warning message.

Hey VideoJS objects allow you to listen to numerous events fired during a video playback’s lifecycle. You can find a complete list of events at the following link. You must scroll down to the Events Section to get the list.

Can you give me an example of code snippet?

Yes, you can use the following code snippet to listen and fire an alert when the video starts playing
this.player.on(‘play’, () => {
alert(“Video is playing”);