;
        }
    }

    function playerSetVideoSize(vFrame) {
        let needsSet = false;

        if (vFrame.displayWidth != currentVideoSize.width) {
            currentVideoSize.width = vFrame.displayWidth;
            needsSet = true;
        }
        if (vFrame.displayHeight != currentVideoSize.height) {
            currentVideoSize.height = vFrame.displayHeight;
            needsSet = true;
        }
        if (needsSet) {
            document.getElementById('videoPlayer').width = currentVideoSize.