Video component oder binding video with code?
Hi everyone,
I have the following problems with building a video sitebar in Animate:
First thing I've tried is binding a video with code like as:
this.video = document.createElement('video');
this.video.src='video.mp4'
this.video.autoplay = true;
this.video.controls = true;
this.video.muted = true;
Works well until I try to loop the video exactly 3 times and then stop. I only can make it loop either infinite or not. Is there a possibility to make it loop 3 times and then stop?
Other way I've tried is to work with components. The problem here is, that I can not implement a layer behind the video as well as in front of the video. I want to play the video in front of a background picture but behind my sound off and sound on buttons.
Maybe one of you guys can tell me which way to prefer or how to solve those problems?
Help would be much appreciated!!
Thank you in advance!
