Site URL: https://pipecamara.squarespace.com/config
Hi!
I use York template and I want to show a video reel in the main page header.
I've found an old code but it doesn't play anything:
<video width="100%" height="43.75%" id="identvideo">
<source src="/s/in-the-pr-room.mp4" type="video/mp4">
<source src="/s/in-the-pr-room.ogv" type="video/ogg">
</video>
<img src="/s/in-the-interiors-pr-room.jpg" width="100%" height="43.75%" id="mobilefallback">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$( document ).ready(function() {
function play_video(){
$('#identvideo').get(0).play()
};
window.setTimeout( play_video, 1500 ); // 1.5 seconds
});
</script>
I want to embed a video from vimeo in the header, any tips?
Thanks!