solves early access error with video element
This will maybe solve the "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" error in firefox.
This commit is contained in:
parent
25da01ce41
commit
b7470fa323
|
@ -2612,7 +2612,7 @@
|
||||||
// Start video playback
|
// Start video playback
|
||||||
var currentVideo = currentBackground.querySelector( 'video' );
|
var currentVideo = currentBackground.querySelector( 'video' );
|
||||||
if( currentVideo ) {
|
if( currentVideo ) {
|
||||||
currentVideo.currentTime = 0;
|
if(currentVideo.currentTime > 0) currentVideo.currentTime = 0;
|
||||||
currentVideo.play();
|
currentVideo.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user