Merge pull request #134 from BreezeZin/fix-controls-not-showing

Fixed controls not showing on youtube videos.
This commit is contained in:
Andrei Chelaru
2021-04-06 18:53:16 +03:00
committed by GitHub

View File

@@ -281,7 +281,7 @@ function defineVideoController() {
var wrapper = document.createElement("div");
wrapper.classList.add("vsc-controller");
if (!this.video.currentSrc) {
if (!this.video.src && !this.video.currentSrc) {
wrapper.classList.add("vsc-nosource");
}