diff --git a/src/components/PsVideo.ts b/src/components/PsVideo.ts index aa2e3454..29830eb6 100644 --- a/src/components/PsVideo.ts +++ b/src/components/PsVideo.ts @@ -213,13 +213,13 @@ class VideoContentSetup { content.videojs.on("loadedmetadata", () => { canPlay = true; this.updateRotation(content); // also gets the correct video elem as a side effect - this.initPlyr(content); + + // Wait (also below) for the transition to end + window.setTimeout(() => this.initPlyr(content), 250); }); content.videojs.qualityLevels()?.on("addqualitylevel", (e) => { - window.setTimeout(() => { - this.initPlyr(content); - }, 0); + window.setTimeout(() => this.initPlyr(content), 250); }); // Get correct orientation