tags:

views:

282

answers:

0

The similar question is posted here but don't have answer:

http://stackoverflow.com/questions/1666558/how-to-get-a-mpmediaitem-from-mpmovieplayercontroller

My problem is that I need to pass properties/metadata from streaming mp4 file to MPMovieMediaController. I have two choices:

  1. to get the MPMediaItem from the played URL in the MediaController which I can find how to do. If I use only audio the MPMusicPlayerController have property nowPlayingItem but the MPMediaPlayerController don't have such a property. OR
  2. to create MPMediaItem somehow from a URL ? or to use NSData somehow to read the meta information associated with some mp4 file.