views:

444

answers:

4

How can i get MPMediaItem from MPMoviePlayerController as i can get it in case of MusicPlayer as follows

MPMediaItem *currentItem = self.musicPlayer.nowPlayingItem;

But how to get it from MPMoviePlayerController? Is it even possible?

Infact i want to get the information about the current movie item playing, for example its title, artist etc, is it possible to get the metadata for a video file?

A: 

Anybody having any knowledge of this??

raziiq
A: 

I need answer for the same question :( anyone ?

JOKe
A: 

Hi,

I don't know if you finaly find out a solution, but I do this way and it works great :

MPMediaItem *nowPlayingMediaItem = [myPlayer nowPlayingItem];

You can only call accessors and mutators using the "dot-syntaxe". For other methods you must use Obejctive-C "message-style-syntaxe".

lethargicpanda
A: 

I am still unable to make it work. I am getting the Exception

raziiq

related questions