Query for video quality

I have a query for a video object as shown below, it will return the high quality version of the mp4Url.

Is there a way to query for the medium or low quality version of the video?

          video {
            video {
              duration
              framerate
              mp4Url
              muxAssetId
              muxPlaybackId
              streamingUrl
              thumbnailUrl(format: jpg)
            }
            width
            height
          }

Hello @james.tsuyuki

You can use the β€œres” or β€œexactRes” parameters to specify the quality of the video:

query MyQuery {
  upload(filter: {id: {eq: "YOUR_VIDEO_ID"}}) {
    video {
      mp4Url(res: high)
    }
  }
}

image

Excellent, thank you!

What is the difference between the exactRes and res fields?

@james.tsuyuki the res parameter means the highest resolution up to the specified one, the exactRes picks always the exact selected resolution

image