ExitFullScreen 按钮导致 MPMoviePlayerViewController 和 PresentMoviePlayerViewControllerAnimated 出现问题
这是我的情况:
我用 URL 调用本地电影。该函数位于 .h 中的自定义 viewController 中
:
MPMoviePlayerViewController* modalVideoController
在 .m
-(void)startVideoAd:(NSNotification*)notification
{
NSURL* url = (NSURL*)[notification object];
// url 没有问题...已经检查过:)
modalVideoController = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
[modalVideoController shouldAutorotateToInterfaceOrientation:YES];
[self presentMoviePlayerViewControllerAnimated:modalVideoController];
[modalVideoController release];
}
问题:如果用户点击进入/退出全屏按钮(快进按钮右侧的双箭头按钮)在视频按钮面板中),modalviewController 通常会消失,但视频仍在播放,没有图像,只有声音。
有没有办法在按下按钮后终止视频?
here is my situation :
I call a local movie with an URL. the function is in a custom viewController
in .h :
MPMoviePlayerViewController* modalVideoController
in .m
-(void)startVideoAd:(NSNotification*)notification
{
NSURL* url = (NSURL*)[notification object];
// no problem with url ... already check :)
modalVideoController = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
[modalVideoController shouldAutorotateToInterfaceOrientation:YES];
[self presentMoviePlayerViewControllerAnimated:modalVideoController];
[modalVideoController release];
}
Problem : if the user hit the enter/exit fullscreen button (the double arrow button at right of the fastfoward button in the video button panel), the modalviewController normaly disappear but the video still playing , no images just sounds.
is there a way to kill the video after the button is pressed ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答:
这样可以正确停止电影。最后的细节:modalVideoController 成为全局的。
Answer:
this way stop correctly the movie. Last details: modalVideoController became global.