always play background video from the start #1049

edit
Hakim El Hattab 2015-01-06 12:49:52 +01:00
parent 4cee280e36
commit 40f12acf2d
1 changed files with 4 additions and 1 deletions

View File

@ -2471,7 +2471,10 @@
// Start video playback
var currentVideo = currentBackground.querySelector( 'video' );
if( currentVideo ) currentVideo.play();
if( currentVideo ) {
currentVideo.currentTime = 0;
currentVideo.play();
}
// Don't transition between identical backgrounds. This
// prevents unwanted flicker.