Component-Videocontrol of a Background-Loop-Video
Hello.
Actually I thought: "Simple thing" - now I've been working on it all day....
For a HTML5 banner I want to include a looping background video. The Z-index, since there is a component video on top, I reset it that way since you can see the timeline content:
var dom_container = document.getElementById("dom_overlay_container");
dom_container.style.zIndex=-1;
Before that I placed the video component and gave it an instance. In the parameters, I specified the file path and checked "play in loop" - everything else unchecked. The video is supposed to start in the first keyframe with:
this.videoinstance.on("added", function() {
$("#videoinstance")[0].play();
}, this, true);and in the last key stopping with:
this.videoinstance.on("added", function() {
$("#videoinstance")[0].pause();
}, this, true);
But it does not start 😞
I tried with "auto-start" in the parameter and stop-command, but this was really buggy... after a view seconds the video begins to loop again and the browser crashed... :0
How can I place a *looping* video *in the background* that starts *immediately* at the beginning and *stops* at the end of the timeline and is displayed by *every browser*.
Thanks all for help or ideas. Cheers Massimo
