开发者

MPMoviePlayerController changes control style at the end of movie

Using iOS4(.3) on iPad

MPMoviePlayerController playing video using default control style in a UIView as follows:

self.player.view.frame = containerView.bounds;
[containerView addSubview: self.player.view];

Controls display as expected with Play/Pause button, time and scrubber etc.

However, upon reaching the end of the media, the media control bar does two things:

1) Changes style - this is the same style I get when I play an MP3

2) Changes location in the view - it's no more docked at the bottom of the UIView anymore but rather in the middle (vertically that is).

Is there a way to stop this behaviour and keep the control bar as it was at the end of the movie?

Found this: MPMoviePlayerController end of play my screen change to audio streaming controller

Precisely the behaviour I'm getting but on the iPad.

I also tried using Apple's own test link: http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8

Same b开发者_运维问答ehaviour. By monitoring MPMovieMediaTypesAvailableNotification, I found out that at the end of the stream, the movieMediaTypes property changes to Audio (only).

Anyway to force the player to stay on Video source?

Thanks


are you handling the MPMoviePlayerPlaybackDidFinishNotification as explained in the Using Video documentation ?

When playback is finished, the movie controller sends a notification received by the application controller object, which releases the movie controller now that it is no longer needed.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜