How to get subtitle and closedcaption text AVPlayer objective c

I want to get current item subtitle and closed caption text of AVPlayer. Please provide me the solution

Take a look at AVPlayerItemLegibleOutput.
I have checked but I am new not getting how to use it.
How to get subtitle and closedcaption text AVPlayer objective c
 
 
Q