Code Monkey home page Code Monkey logo

Comments (8)

DZamataev avatar DZamataev commented on August 31, 2024 2

code snippet mentioned by @Tommecpe which is useful to read metadata with AVPlayer may look like this

AVPlayerItem* playerItem = [AVPlayerItem playerItemWithURL:streamUrl];
[playerItem addObserver:self forKeyPath:@"timedMetadata" options:NSKeyValueObservingOptionNew context:nil];
AVPlayer* player = [AVPlayer playerWithPlayerItem:playerItem] ;
[player play];
- (void) observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object
                        change:(NSDictionary*)change context:(void*)context {

   if ([keyPath isEqualToString:@"timedMetadata"])
   {
      AVPlayerItem* playerItem = object;

      for (AVMetadataItem* metadata in playerItem.timedMetadata)
      {
         NSLog(@"\nkey: %@\nkeySpace: %@\ncommonKey: %@\nvalue: %@", [metadata.key description], metadata.keySpace, metadata.commonKey, metadata.stringValue);
      }
   }
}

is there something like this in audjustable AudioPlayer or HttpDataSource? My best option is to be notified via delegate.

from streamingkit.

DZamataev avatar DZamataev commented on August 31, 2024

+1 need this too. So much!

from streamingkit.

tumtumtum avatar tumtumtum commented on August 31, 2024

What type of metadata are you trying to get? Track name...ID3 tags etc?

from streamingkit.

DZamataev avatar DZamataev commented on August 31, 2024

Yes, track name is most needed.

02 ôåâð. 2014 ã., â 23:54, Thong Nguyen [email protected] íàïèñàë(à):

What type of metadata are you trying to get? Track name...ID3 tags etc?


Reply to this email directly or view it on GitHub.

from streamingkit.

DZamataev avatar DZamataev commented on August 31, 2024

@tumtumtum could you please comment on this.

from streamingkit.

tumtumtum avatar tumtumtum commented on August 31, 2024

It's not supported at the moment. Pull requests are welcome.

from streamingkit.

muthuka avatar muthuka commented on August 31, 2024

+1 need this too. It will be awesome to use it with metadata.

from streamingkit.

sandeepo2o avatar sandeepo2o commented on August 31, 2024

Any update on ID3 MetaData?

from streamingkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.