Is there anyway to get captions in javascript?

For exemple on my KMC i upload a caption in a specific video, so i’d like to get this srt file in frontend if it is possible.

    const kdp = document.getElementById(playerId)

    kdp.kBind('playerReady', function() {
        const videoData = kdp.evaluate('{mediaProxy.entry}')
        console.log('videoData', videoData) 
    })