MPMoviePlayerController controls do not reflect Play, Pause status
Originator: | ttoenshoff | ||
Number: | rdar://10484668 | Date Originated: | 24-Nov-2011 |
Status: | Open | Resolved: | |
Product: | iPhone SDK | Product Version: | 5.0 |
Classification: | Medium | Reproducible: | Yes |
Summary: When using the standard user interface (e.g. MPMoviePlayerController.controlStyle = MPMovieControlStyleFullscreen;) the player never changes the state of the play/pause button Steps to Reproduce: MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] init]; moviePlayer.shouldAutoplay = YES; moviePlayer.fullscreen = NO; moviePlayer.view.frame = self.view.bounds; moviePlayer.currentPlaybackTime = 0.0; moviePlayer.initialPlaybackTime = 0.0; [moviePlayer setContentURL:[NSURL URLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"]]; Expected Results: Play / Pause properly reflect the playback status. Actual Results: Play / Pause always shows the play-symbol, no matter if the player is currently paused or not. Regression: Works fine with all older iOS SDKs (4.x) Notes: To fist the problem, the setContentURL method call has to be moved above setting the playback-time. MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] init]; moviePlayer.shouldAutoplay = YES; moviePlayer.fullscreen = NO; moviePlayer.view.frame = self.view.bounds; [moviePlayer setContentURL:[NSURL URLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"]]; moviePlayer.currentPlaybackTime = 0.0; moviePlayer.initialPlaybackTime = 0.0;
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!