stealthbomber
cruising at 30,000
you should have to click them to get it going. you dont want 5 webms going off at the same time
'use strict';
function main()
{
var videos = document.querySelectorAll('a'),
link, video;
for (var i = 0; i < videos.length; i++)
{
link = videos[i].href;
if (link.indexOf('.webm') === link.length - 5 || link.indexOf('.mp4') === link.length - 4)
{
video = document.createElement('video');
video.src = link;
video.autoplay = false;
video.loop = true;
video.muted = true;
video.width = '720';
video.controls= false;
videos[i].parentNode.replaceChild(video, videos[i]);
}
}
var vid = document.getElementsByTagName("video");
for(var i=0; i < vid.length; i++)
{
vid[i].onmouseover = vid[i].play;
vid[i].onclick = vid[i].pause;
}
}
window.onload = main;
Wonder if they have made the transition yet?Oh no. We'll have MAD peeps asking for 'sauce'.
Especially on JBO......
you can manually disable audio and set the video to loop and autoplay. no automatic options thought.if implementation that disables audio becomes available then we'll look into it...
you can manually disable audio and set the video to loop and autoplay. no automatic options thought.
gifs are still better and easier to use.
has to be done with each webm