phi
phi

Reputation: 10733

How to customize MPMoviePlayerController?

I am using MPMoviePlayerController (for an iOS 4 app) in order to play some remote mp3 files. When I add the view like that:

[moviePlayer.view setFrame:CGRectMake(10, 240, 300, 20)];
[self.view addSubview:moviePlayer.view];

I get the following:

alt text

Is it possible to customize this view? I would like to tint the color, or even add custom controls, a different progress bar etc.

Upvotes: 2

Views: 4860

Answers (2)

Lucas G
Lucas G

Reputation: 148

I don't think it is possible to customize the view, but whats possible for sure is that you can build your own class and use the properties, instance methods and notifications of the MPMoviePlayerController to control it with your own created GUI. Maybe the best idea is to extent the MPMoviePlayerController class and override it's view property.

Upvotes: 1

Jano
Jano

Reputation: 63667

See a sample of a custom view/viewController combo in Pragmatic iPad Programming. Check the source code for chapter 8 (free download from that page).

Upvotes: 5

Related Questions