Fixed controls not showing on youtube videos.

Only add the nosource class if the video has no
src or currentSrc.
This commit is contained in:
BreezeZin
2021-03-25 10:41:20 +10:00
parent f06bc38253
commit d652e4ec18

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");
}