This commit is contained in:
Tamius Han 2021-01-13 00:22:42 +01:00
parent e2eaa206e4
commit 2a7001ea3a

View File

@ -33,7 +33,7 @@ class VideoData {
async onVideoLoaded() {
if (!this.videoLoaded) {
if (this.video.videoWidth && this.video.videoHeight) {
if (!this.video.videoWidth || !this.video.videoHeight) {
return; // onVideoLoaded is a lie in this case
}
this.logger.log('info', 'init', '%c[VideoData::onVideoLoaded] ——————————— Initiating phase two of videoData setup ———————————', 'color: #0f9');