iveHeight) {
        const playerContainer = document.getElementById("player-container");
        const videoElement = document.getElementById("videoPlayer");

        
        const windowWidth = window.innerWidth;
        const windowHeight = window.innerHeight * 0.8; 

        let displayWidth = nativeWidth;
        let displayHeight = nativeHeight;

        
        if (nativeWidth > windowWidth) {
            const ratio = windowWidth / nativeWidth;
            displayWidth = windowWidth;
            d