【问题标题】:Large size video not playing in fullscreen mode using MPMoviePlayerController使用 MPMoviePlayerController 无法以全屏模式播放大尺寸视频
【发布时间】:2015-05-13 06:37:00
【问题描述】:
     self.videoController = [[MPMoviePlayerController alloc]initWithContentURL:url];

    if([[UIScreen mainScreen] bounds].size.height>480)
        [self.videoController.view setFrame:CGRectMake(0, 44, _viewVideoArea.frame.size.width, _viewVideoArea.frame.size.height)];
    else
        [self.videoController.view setFrame:CGRectMake(0, 44, _viewVideoArea.frame.size.width, 383)];

    [self.viewVideoArea addSubview:self.videoController.view];

    [self.videoController prepareToPlay];
    [self.videoController play];

以上代码是我对播放器的初始化。播放器未处于全屏模式但未以全屏模式播放时播放大尺寸视频。然后全屏模式下的任何按钮也没有响应(包括完成按钮)。

Link 也试试这个响应完成按钮但不起作用..不知道发生了什么问题。

谁能帮我解决我的问题

【问题讨论】:

    标签: ios mpmovieplayercontroller


    【解决方案1】:

    你试过了吗

    self.videoController.controlStyle = MPMovieControlStyleFullscreen;
    

    【讨论】:

    • 感谢您的回复,我会尽力让您知道
    猜你喜欢
    • 2011-11-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-19
    • 2016-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多