isplayHeight = nativeHeight * ratio;
        }

        if (displayHeight > windowHeight) {
            const ratio = windowHeight / displayHeight;
            displayHeight = windowHeight;
            displayWidth = displayWidth * ratio;
        }

        
        playerContainer.style.width = `${displayWidth}px`;
        playerContainer.style.height = `${displayHeight}px`;

        
        videoElement.style.width = "100%";
        videoElement.style.height = "100%";
    }

   
    window.addEventListen