Get AVPlayerItem track title with SwiftUI
问题 I'm trying to create a radio app, which streams audio from an http streaming. I'm trying to fetch the current playing track title from the streaming, but all I can find is deprecated methods. My model looks like this: struct RadioStreamer { let streamingURL: URL private let player: AVPlayer? private let playerItem: AVPlayerItem? init(streamingURL: URL) { self.streamingURL = streamingURL self.playerItem = AVPlayerItem(url: self.streamingURL) self.player = AVPlayer(playerItem: self.playerItem)