Identifying the currently playing EXT-X-MEDIA

Here's a simple master playlist to illustrate the question:


#EXTM3U

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_low",LANGUAGE="en",NAME="English",AUTOSELECT=YES,DEFAULT=YES,URI="audio_low.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_high",LANGUAGE="en",NAME="English",AUTOSELECT=YES,DEFAULT=YES,URI="audio_high.m3u8"

#EXT-X-STREAM-INF:BANDWIDTH=100000,CODECS="mp4a.40.2,avc1.4d401e",AUDIO="audio_low"
video.m3u8

#EXT-X-STREAM-INF:BANDWIDTH=200000,CODECS="mp4a.40.2,avc1.4d401e",AUDIO="audio_high"
video.m3u8


During playback, we can look at AVPlayerItemAccessLogEvent.URI to identify the currently playing EXT-X-STREAM-INF (in this case it will always be video.m3u8). Is there any similar way to identify the currently playing EXT-X-MEDIA?


If the audio codecs were different (let's say AAC and AC-3), we might be able to find out by looking at the codec in AVAssetTrack.formatDescriptions. But that's hacky and doesn't work if the codecs are the same like in the example.


Ideally, there would be a way to get either the URI or GROUP-ID of the currently playing EXT-X-MEDIA. Am I overlooking an API somewhere, or is there no way to do that currently?

Identifying the currently playing EXT-X-MEDIA
 
 
Q