Discussion Forums  >  Uncategorized

Replies: 1    Views: 240

Vassan
Code is Art
Profile
Posts: 28
Reg: Apr 21, 2011
Chennai
280
04/27/11 02:50 AM (14 years ago)

Guick time

How to play our song in Quick time .
 
Vassan
Code is Art
Profile
Posts: 28
Reg: Apr 21, 2011
Chennai
280
like
04/27/11 11:54 AM (14 years ago)
Hi i found the solution -> Add Mediaplayer FrameWork ->#import<mediaplayer/mediaplayer.h> -> put one button ->And put code -(IBAction)play{ NSBundle *Bundle =[NSBundle mainBundle]; NSString *musicPath =[Bundle pathForResource:@Track1 ofType:@mp3]; NSURL *musicURL =[[NSURL fileURLWithPath:musicPath]retain]; MPMoviePlayerController *music =[[MPMoviePlayerController alloc]initWithContentURL:musicURL]; [music play]; } Now your Sound open in native player(Guick time)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.