MPMusicPlayerController is not playing anything.
Any one have idea about this new MPMusicPlayerControlller class in iphoneOS3.0.
I am getting null value for my object.
MPMusicPlayerController *player = [MPMusicPlayerController iPodMusicPlayer];
MPMediaQuery *query = [MPMediaQuery songsQuery];
NSLog(@"Song Query : %@", query);
[player setQueueWithQuery:[MPMediaQuery songsQuery]];
NSLog(@"Player : %@", player);
[player play];
NSLog(@"Player --%@",[player nowPlayingItem]);
NSLog(@"Current Playback Time : %@", [player currentPlaybackTime]);
This code not playing any thing but not giving error.
I am getting following thing in my console
MPMediaLibrary: Unable to launch media library server: application not found
What is this media library server?
From where player can identify the file which i want to play with my player?
Please help if any one have idea about this.
Thanks,
Hemali Mojidra
Any one have idea about this new MPMusicPlayerControlller class in iphoneOS3.0.
I am getting null value for my object.
MPMusicPlayerController *player = [MPMusicPlayerController iPodMusicPlayer];
MPMediaQuery *query = [MPMediaQuery songsQuery];
NSLog(@"Song Query : %@", query);
[player setQueueWithQuery:[MPMediaQuery songsQuery]];
NSLog(@"Player : %@", player);
[player play];
NSLog(@"Player --%@",[player nowPlayingItem]);
NSLog(@"Current Playback Time : %@", [player currentPlaybackTime]);
This code not playing any thing but not giving error.
I am getting following thing in my console
MPMediaLibrary: Unable to launch media library server: application not found
What is this media library server?
From where player can identify the file which i want to play with my player?
Please help if any one have idea about this.
Thanks,
Hemali Mojidra