开发者

How to customize MPMoviePlayerController?

开发者 https://www.devze.com 2023-02-05 05:49 出处:网络
I am using MPMoviePlayerController (for an iOS 4 app) in order to play some remote mp3 files. When I add the view like that:

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 addSu开发者_如何学JAVAbview:moviePlayer.view];

I get the following:

How to customize MPMoviePlayerController?

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


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).


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消