iOS Shoutcast access metadata using Swift

Viewed 168

Ok so I've looked at many similar stack questions but none of them worked or were too old to even be considered.

Here is the stream adres if that's important: http://51.255.8.139:8822/stream

NOTE: I'm new to iOS programming and this is my first project.

I used AVFoundation. AVAsset to enclose URL and AVPlayer to play it. That works.

I can't however get any metadata from the stream. Like current song name.


Notable things I tried:

  • asset.timedMetadata nothing there
  • official apple tutorial availableMetadataFormats was empty
  •  playerItem!.observe(\AVPlayerItem.timedMetadata, options: .new) {
             (player, change) in print(change)
        } 
    
    also empty
1 Answers
Related