jquery.videoBG
jquery.videoBG copied to clipboard
Use load() instead of play() for looping
Looping (either done by loop attribute or the event handler from this source code) in Chrome only works if the content is served with "partial content request".
If we replace the play() method by load(), it works. Tested on Chrome, FF and Safari.
I had this same issue. Chrome on MacBook Pro will never loop the video, just stops. I switched out play()
with load()
in jquery.videoBG.js:200 and it worked for me.
I haven't tested this in other browsers yet to see if anything broke.