Im having a data type issue - with AVPlayer in Swift I am given a CMTimeRange when I try to get:
AudioPlayerManager.shared.currentTrack?.playerItem?.loadedTimeRanges[0]
What is printed with this is:
Optional(CMTimeRange: {{0/1 = 0.000}, {1016722/600 = 1694.537, rounded}})
I have tried all the members and trying to get a value for the cmtimerange key here, but I just get errors. I need the final value the 1694 as a Float.
How do I do this?