I have a URL for playing https://wortcast01.wortfm.org/appfiles/wort_210715_080006buzzthu.m3u
if I put it to AVPlayer then the item duration equals nan.
var itemDuration: Double? {
return currentItem?.duration.seconds
}
I understand that m3u has a list of items(let's call them tracks) And AVPlayer knows how to automatically switch from one to another track (in the m3u file).
but, How do I extract the duration of the current playing AVPlayer track(of m3u file)?
Does AVPlayer support .m3u format? (it knows how to play but does not provide info data )
I described the same problem here.