Get ID3 tags from stream on iPhone


I can not get title of song and name of composer on iPhone from HTTP Live Stream (using m3u, m3u8 playlist files). I've tried get it from this site <a href="http://www.tempomixradio.com" rel="nofollow noreferrer">tempomix radio</a>. this is link to streaming - <a href="http://stream21.group-network.net:9012" rel="nofollow noreferrer">http://stream21.group-network.net:9012</a>

I'm trying use next code:

AVPlayerItem *playerItem = [AVPlayerItem playerItemWithURL:url]; _player = [[AVPlayer playerWithPlayerItem:playerItem] retain]; _player.actionAtItemEnd = AVPlayerActionAtItemEndNone; [_player addObserver:self forKeyPath:@"status" options:NSKeyValueObservingOptionNew context:NULL]; [_player addObserver:self forKeyPath:@"currentItem" options:NSKeyValueObservingOptionNew context:NULL]; [_player addObserver:self forKeyPath:@"timedMetadata" options:NSKeyValueObservingOptionNew context:NULL];

And then waiting for callback here:

- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {

When callback comes - I check AVPlayerStatus and run play. Radio plays fine - but never comes to observeValueForKeyPath.

I know this question looks similar to <a href="https://stackoverflow.com/questions/5085677/extracting-id3-tags-from-mp3-over-http-live-streaming" rel="nofollow">this question</a> but described methods don't work for me.

Any ideas? Thanks.


ID3 tags have nothing to do with the stream that you linked to. SHOUTcast/Icecast doesn't use ID3 tags.

You will have to parse the SHOUTcast metadata protocol. I've answered this question for PHP here: <a href="https://stackoverflow.com/a/4914538/362536" rel="nofollow">https://stackoverflow.com/a/4914538/362536</a> The principals are identical, no matter what the language.

See also <a href="http://www.smackfu.com/stuff/programming/shoutcast.html" rel="nofollow">http://www.smackfu.com/stuff/programming/shoutcast.html</a>


  • AVPlayer streaming works and yet it doesn't
  • Getting PCM data of HLS from AVPlayer
  • NSKeyValueObservation: Cannot remove an observer for the key path from object because it is not regi
  • How to make volume slider for AVPlayer in xcode for mac
  • Always show AVPlayer controls
  • nsinvalidargumentexception' reason 'an avplayeritem cannot be associated with more than on
  • ARKit add 2D Video flipped by X
  • Can you stream from a HTTPS server using HLS?
  • Counting rows in multiple variables using SAS
  • Getting mount point when a USB device is inserted Mac OS X and linux
  • Image in reused cell in a TableView not being cleared from ImageVIew
  • Pass NSString value to another ViewController in Objective C
  • Slider with ajax content
  • Sharepoint 2010 migration to sharepoint online using sharegate
  • unclear use of @property in window app using core data
  • What is the last function in iPhone application lifecycle
  • CALayer and CAAnimation's dynamic resolution of unimplemented property accessors
  • How to display a Subclass of UIControl on the screen
  • Retain query string on rewrite .htaccess
  • Retaining the previous date in R
  • How to hide a vanilla button according to form state
  • Struts2 how to keep form values when navigating between pages?
  • HowTo for newbie: Managing currency in iPhone app
  • Why doesn't setTimeout(.., 0) execute immediately?
  • Crystal Reports: Passing Multiline Parameter Values
  • Creating a new NSString instance has retain count of 3
  • How to trigger methods with UIButtonBarItem?
  • A few IBOutlets pointing to nil
  • Using Objective-C's method_invoke to call a void method under ARC
  • AVPlayer plays on simulator but doesn't on a real device
  • NSURLConnection delegate methods not being called
  • How to play MPEG-DASH with AVPlayer?
  • MySQL: add a field to a large table
  • pyspark, importing schema through json file
  • android: disable opengl ES context switch upon device rotation
  • Encoding issue with ASIHttpRequest
  • Unload image of UIImageView thats offscreen
  • Specifying virtual keyboard type for EditText in XML
  • Creating PDF from TIFF image using iText
  • how to save the state in userdefaults of accessory checkmark-iphone