PDA

View Full Version : MPMusicPlayerController iPhone OS 3.0




hemalimojidra
Apr 20, 2009, 02:40 AM
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



dejo
Apr 20, 2009, 11:43 AM
Since this deals with the iPhone OS 3.0 beta, which is still under NDA, you probably won't get much help in this forum.

fishkorp
Apr 20, 2009, 12:24 PM
Post your question on the Apple 3.0 dev forum, you'll get a quick response there. There are even Apple folks who respond to code questions. Plus you're not violating anything by posting your questions and code there.

And if you're trying that in the simulator, it won't work. There is no media player in the simulator, you need to test it on the device only.

hemalimojidra
Apr 20, 2009, 11:05 PM
Since this deals with the iPhone OS 3.0 beta, which is still under NDA, you probably won't get much help in this forum.

Thanks
Than from where i can get my solution rather than apple developer beta forum 3.0?

hemalimojidra
Apr 20, 2009, 11:20 PM
Post your question on the Apple 3.0 dev forum, you'll get a quick response there. There are even Apple folks who respond to code questions. Plus you're not violating anything by posting your questions and code there.

And if you're trying that in the simulator, it won't work. There is no media player in the simulator, you need to test it on the device only.

Thank you first

In this APPLE 3.0 dev forum only those can login who has enroll for $99 or $299. I haven't that apple id to login. Is there any other way that can help me?

Yes this iTune library will not be awaylable in simulator. So it won't be work.

Thans
Hemali Mojidra

dejo
Apr 20, 2009, 11:30 PM
In this APPLE 3.0 dev forum only those can login who has enroll for $99 or $299. I haven't that apple id to login. Is there any other way that can help me?
If you don't have access to the Apple Dev Forums for 3.0 then that means you obtained the iPhone OS 3.0 beta through channels other than the official ones and we can't help you then. Sorry.

hemalimojidra
Apr 21, 2009, 11:03 PM
If you don't have access to the Apple Dev Forums for 3.0 then that means you obtained the iPhone OS 3.0 beta through channels other than the official ones and we can't help you then. Sorry.

ok thnks