How can I do that when I finish playing the video completely another one is executed in autoplay mode. Something like in YouTube when you finish a video and leave you a few seconds until they execute another automatically.
<video autoplay muted preload="none"
src="vid/video001.mp4"
style=" position:absolute; width: 100vw;
-webkit-mask-image:-webkit-gradient(linear, left top, left bottom,
from(rgba(0,0,0,0.3)), to(rgba(0,0,0,0)))">
</video>
When I finish the video001 I want to run the "video002" with the same gradient and in autoplay ... Thanks in advance!