.value = `${bufferInfo.size} (${bufferInfo.lengthMs.toFixed(0)} ms)`;
        document.getElementById('currentRendererVDiscarded').value = totalDiscarded.toFixed(0);
    }

    function playerUpdateVideoLatencyUI(latencyMs) {
        document.getElementById('latencyVideoMs').value = `${latencyMs.toFixed(0)} ms`;
    }

    function playerUpdateAudioLatencyUI(totalLatencyMs, systemAudioLatencyMs) {
        document.getElementById('latencyAudioMs').value = `${totalLatencyMs.toFixed(0)} ms (System: ${systemAud