function formatResolution(id, tracks) {
      const track = tracks.find((t) => t.id == id);
      const trackHeight = track.height || 0;
      const trackWidth = track.width || 0;
      let height = trackHeight;
      const aspectRatio = trackWidth / trackHeight;
      if (aspectRatio > (16 / 9)) {
        height = Math.round(trackWidth * 9 / 16);
      }
      let text = height + 'p';
      if (height == 2160) {
        text = '4K';
      }
      return text;
    }
Gets the resolution to the same format it
appears in the UI

@param {number} id
@param {!Array<!shaka.extern.Track>} tracks
@return {string}