hello wonderful people!
after some days of trying and researching i finally tend to you.
i have the following problem: in my application i embedded a “walls.io” which is basicall a social media scrawler for hashtagged pictures and videos which updates every minute on its own.
the videos autostart as they should if you navigate to the site in chrome, but they dont autostart inside the vvvv html node.
so my question is: is there a way to autostart any video inside the vvvv html node?
i already tried this java script, but it doenst work:
// execute the function every 3000ms
setTimeout(function() {
var visibleVideos = document.querySelectorAll(‘video’);
for (var i = 0; i < visibleVideos.length; i++) {
var currentVideo = visibleVideos[i];
currentVideo.setAttribute(‘loop’, ‘loop’);
currentVideo.setAttribute(‘autoplay’, true);
currentVideo.play();
}
}, 3000);
im sorry i can not post my application here because of legal issues.
thx for any help in advance!
ahoi!