I'm trying to use this plugin but all examples use a video that's local to the site. I'm trying to use a video that's on Vimeo or YouTube. Is it possible to use this plugin with an HTTPS streaming video URL?
Plugin site is here: https://github.com/Victa/HTML5-Background-Video
This is what my code looks like, note that the domain/video URL in this example is not real, but for the purpose of an example. I am pointing it at an Azure media services URL, but I've tried a number and it doesn't seem to matter. My questions is, should this work, or is it me? No errors are being thrown in script, and the request for the URL is returning with a 206 - Partial Content HTTP response.
$(document).ready(function () {
$('body').videoBG({
position: "fixed",
zIndex: 0,
mp4: 'https://somesite.net/somevideo.mp4’,
ogv: 'https://somesite.net/somevideo.ogv’,
webm: 'https://somesite.net/somevideo.webm’,
poster: 'images/christmas_snow.jpg',
opacity: 1,
fullscreen: true,
});
})