jquery - HTML5 Video not auto playing when using ended function -
I have an HTML5 video background of my website, once played through it, then directs an anchor link
This works very well, my only issue once, when I implement the function to direct anchor link, the video auto runs !!
The website is based on FullPage.js
This code is for my video function:
$ (document) .ready (function () {$ ('# Fullpage'). Fullpage ({vertical centered: true, squareclosure: ['#FFF', '#FFF', '#FFF', 'FF', 'FF'], Anchor: ['First Page ',' Second page ',' third page ',' 4 page '' final page '], menu:' # menu ', followed by the rudder: function () {// Video $ ("# myVideo") Play ( ). Load the code in this video ("end", function load () {window.location. Hash = "secondpage"}}}}}})}}
& Lt; video autoplay control id = "myvideo">
>Cheers
You should take a look at the examples available with the background video in the fullpage.js website:
$ (document) .ready (function () {$ ('# Fullpage'). Fullpage ({vertical centered: true, class color: ['# 1 BBC 9B', '# 4BBFC3', '# 7BAABE'], after reader: function () {// video $ ('video') Playing. Get (0) .play ();}})}};
Comments
Post a Comment