title: How to get the available video dimensions/quality from a video url iOS?
body: <p>I am creating custom video player using AVPlayer in ios (OBJECTIVE-C).I have a settings button which on clicking will display the available video dimensions and audio formats.
  Below is the design:</p>
  
  <p><a href="https://i.stack.imgur.com/6nEI6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6nEI6.png" alt="enter image description here"></a></p>
  
  <p>so,I want to know:</p>
  
  <p><strong>1).How to get the available dimensions from a video url(not a local video)?</strong></p>
  
  <p><strong>2). Even if I am able to get the dimensions,Can I switch between the available dimensions while playing in AVPlayer?</strong></p>
  
  <p>Can anyone give me a hint?</p>