= `${data.numTotalGaps} (${data.numTotalLostStreams} streams lost)`;
        document.getElementById(elementMaxSize).value = `${data.currentMaSizeMs} ms`;
    }

    function playerUpdateFirstChunkTSUI(mediaType, ts) {
        let elementName = 'firstChunkVts';
        if (mediaType === 'audio') {
            elementName = 'firstChunkAts';
        }
        document.getElementById(elementName).value = (ts / 1000).toFixed(0);
        document.getElementById('firstChunkVADiff').value = `${document.getElementB