草庐IT

MpMovieplayerController

全部标签

iphone - MPMoviePlayerController 播放 YouTube 视频

如何在iPhone上的MPMoviePlayerController中播放YouTube视频,同时避免进入全屏模式?这里提出了这个问题:MPMoviePlayerControllerisplayingYouTubevideo?在这里:PlayYoutubevideoinMPMoviePlayerControllerorplayRTSP-3GPlink回答声称这种功能是不可能的。然而,这个应用程序Deja具有我想要的功能:一个无缝的MPMoviePlayerController,我可以明确控制其框架。http://itunes.apple.com/app/deja/id417625158

objective-c - 如何使 MPMoviePlayerController 横向全屏而不是纵向全屏

我有一个初始化如下的MPMoviePlayerController://CodeinmyUIViewController@property(nonatomic,strong)UIView*myVideoView;@property(nonatomic,strong)MPMoviePlayerController*myVideoPlayer;-(void)initializeVideoPlayer{CGRectframe=CGRectMake(0,70,self.view.frame.size.width,200);self.myVideoView=[[UIViewalloc]initW

ios - 在 MPMoviePlayerController 之上添加一个 View

我有一个全屏播放的MPMoviePlayerController。然后我想在电影上方添加一个UIButton,但它没有显示。我已经尝试过像这样在电影View上方插入View:mpc=[[MPMoviePlayerControlleralloc]initWithContentURL:url];[mpcsetMovieSourceType:MPMovieSourceTypeFile];[self.viewaddSubview:mpc.view];**[self.viewinsertSubview:self.backButtonaboveSubview:mpc.view];**[mpcset

ios - 慢动作播放 MPMoviePlayerController

我正在编写一个应用程序,它需要能够播放用户的所有视频,包括慢动作视频。我的代码适用于普通视频,但慢动作视频正在以正常速度播放(不是慢动作)。我已经用谷歌搜索并搜索了SO但无法找到任何代码示例来让它工作。我通过执行以下操作获取Assetsurl:PHVideoRequestOptions*options=[PHVideoRequestOptionsnew];options.deliveryMode=PHVideoRequestOptionsDeliveryModeHighQualityFormat;options.version=PHVideoRequestOptionsVersionO

iphone - MPMoviePlayerController 不想工作

我正在使用cocos2d,我想播放电影。我创建了一个CCLayer子类并重新实现了它的init方法,如下所示:-(id)init{self=[superinit];if(self){NSURL*url=[NSURLfileURLWithPath:@"common/test-movie.mp4"];MPMoviePlayerController*player=[[MPMoviePlayerControlleralloc]initWithContentURL:url];[[[CCDirectorsharedDirector]openGLView]addSubview:[playerview

iphone - MPMoviePlayerController 反向(向后)播放电影在 iPhone App 中不流畅

我正在开发一个iPhone应用程序,我需要在其中反转视频播放。我目前正在使用XCode4.2。我正在尝试使用MPMoviePlayerController反向播放电影。但是当它反向播放时,它不如正向播放那么流畅。它变得有点波涛汹涌,一点也不光滑。以下是我的代码。-(void)viewDidLoad{//codeforinitializingthemovieplayerMPMoviePlayerControllervideoPlayer=[[MPMoviePlayerControlleralloc]initWithContentURL:"URL"];self.videoPlayer=vi

ios - MPMoviePlayerController 不播放 .wmv

我以非常标准的方式使用MPMoviePlayerController。MPMoviePlayerController*player=[self.movieControllermoviePlayer];player.shouldAutoplay=YES;player.scalingMode=MPMovieControlModeVolumeOnly;player.controlStyle=MPMovieControlStyleDefault;[playerplay]我正在播放视频,它可以正常工作。但是,我无法播放wmv视频。它一直说“正在加载”。该视频在我的OSX上运行良好。是否支持wmv

ios - MPMoviePlayerController 阻塞主线程

我正在使用MPMoviePlayerController(MPMPC)将音频流式传输到应用程序中,效果非常好。只有一个异常(exception),在低网络连接期间,应用程序变得无响应。现在我什至尝试过使用AVPlayer但或多或少有相同的体验。出于某种原因,我在互联网上找不到与此相关的任何问题。所以我不确定这是我的结果还是MPMoviePlayerController在低连接性期间的行为方式。我什至尝试记录在将URL提供给MPMPC之后调用的任何函数,但没有调用任何函数。我使用了以下三个通知来获取MMPPC的事件MPMoviePlayerLoadStateDidChangeNotifi

ios - MPMoviePlayerController Bad Url 错误

如果我给MPMoviePlayerViewController一个错误的视频URL来播放,就像这样:[[MPMoviePlayerViewControlleralloc]initWithContentURL:[NSURLURLWithString:@"http://badurl"]];有没有办法通知视频未下载?我尝试了以下两种方法,但都没有收到通知:[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(loadStateChanged)name:MPMoviePlayerLoadStateDidCh

ios - MPMoviePlayerController 在全屏模式后使 App 的方向不正确

因此我们构建了一个仅支持横向的iPad应用程序。这是通过在plist中将Supportedinterfaceorientations(iPad)设置为Landscape(left/righthomebutton)来强制执行的。此外,所有UIViewControllers都实现了shouldAutorotateToInterfaceOrientation:,如下所示:-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{returnUIInterfaceOrie