TS').value} ms`;
    }
    
    function playerUpdateDecoderUI(mediaType, ts, bufferInfo) {
        let elementTsName = 'currentFrameVTS';
        let elementBufferName = 'currentDecoVBuffer';
        let elementCompOffset = '';
        if (mediaType === 'audio') {
            elementTsName = 'currentFrameATS';
            elementBufferName = 'currentDecoABuffer';
            elementCompOffset = 'currentDecoCompAOffset';
        }
        document.getElementById(elementTsName).value = (ts / 1000).toFixed(0)