Skip to content
Advertisement

How to make a video minimized automatically when it ends

I use a button that calls the function “play()” that make the video play on fullscreen

JavaScript

How could I make the video auto-minimized when it stops playing?

Advertisement

Answer

.onended() this function use in end video.

The ended event occurs when the audio/video has reached the end.

This event is useful for messages like “thanks for listening”, “thanks for watching”, etc.

example:-


JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement