src/CaptionLinks.js
/**
   * Parse the caption links from the string
   * @private
   * @param {string} rawString The raw string
   * @returns {Array<CaptionLink>} The caption links
   */
Parse the caption links from the string
@private
@param {string} rawString The raw string
@returns {Array} The caption links
Parse the caption links from the string @private @param { string } rawString The raw string @returns { Array } The caption links
parse(rawString) {
    const decoded = new URLSearchParams(rawString);
    const playerResponse = JSON.parse(decoded.get('player_response'));
    const captionLinks = playerResponse.captions.playerCaptionsTracklistRenderer.captionTracks;
    return captionLinks;
  }
parse ( rawString ) { const decoded = new URLSearchParams ( rawString ) ; const playerResponse = JSON . parse ( decoded . get ( 'player_response' ) ) ; const captionLinks = playerResponse . captions . playerCaptionsTracklistRenderer . captionTracks ; return captionLinks ; }
Parse the caption links from the string
 @private
 @param {string} rawString The raw string
 @returns {Array<CaptionLink>} The caption links
Parse the caption links from the string @private @param { string } rawString The raw string @returns { Array<CaptionLink > } The caption links