yId('firstChunkVts').value - document.getElementById('firstChunkAts').value} ms`;
    }

    function playerUpdateChunkTSUI(mediaType, ts) {
        let elementName = 'currentChunkVTS';
        if (mediaType === 'audio') {
            elementName = 'currentChunkATS';
        }
        document.getElementById(elementName).value = (ts / 1000).toFixed(0);

        document.getElementById('currentChunkAVTSDiff').value = `${document.getElementById('currentChunkVTS').value - document.getElementById('currentChunkA