backgroundVideo icon indicating copy to clipboard operation
backgroundVideo copied to clipboard

Src can it be an URL?

Open LouieFigo opened this issue 7 years ago • 1 comments

I first tried your old version, hosted my media files on my server. copied the HTML and change the src it works!

old code: div id="video-wrap" class="video-wrap"> video preload="none" autoplay loop id="my-video"> source src="https://rithm-preprod.rithm.nl/documents/20147/0/rithm.mp4/1c13719d-6ee5-877b-a933-beefd8337563" type="video/mp4"> source src="https://rithm-preprod.rithm.nl/documents/20147/0/rithm.webm/775d3fb0-aa6d-342f-beca-5cce56a3258a" type="video/webm"> /video> /div>

But with the new version:

const backgroundVideo = new BackgroundVideo('.bv-video', { src: [ 'https://rithm-preprod.rithm.nl/documents/20147/0/rithm.mp4/1c13719d-6ee5-877b-a933-beefd8337563', 'https://rithm-preprod.rithm.nl/documents/20147/0/rithm.webm/775d3fb0-aa6d-342f-beca-5cce56a3258a' ] });

doesnt work? any idea how I can still use this in the new version (old version has flickering problems with chrome :) )

LouieFigo avatar Mar 03 '17 14:03 LouieFigo

I understand why it isn't working - I'm back from travelling now so I can help. I'll attempt to get a fix put in soon!

linnett avatar Apr 13 '17 14:04 linnett