I am working on a project in angular, I have a component which should run a video in full screen and loop only once with autoplay, I tried to follow this link. But it the video is not working inside angular, I have the video in assets/videos folder.
This is my html
<video autoplay muted id="myVideo">
<source src="/assets/videos/copro.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
</div>
This is the CSS I used
#myVideo {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
}
Thanks for the help in advance :)