草庐IT

电影剧本

全部标签

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

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

objective-c - 从相册/UIimagepickercontroller 获取电影的创建日期

如何获取通过UIimagepickercontroller获取的电影的创建日期。我得到以下代码,但没有关于创建日期的信息。我也试过文件属性但没有运气。NSURL*url=urlfromimagepicker;NSDictionary*options=@{AVURLAssetPreferPreciseDurationAndTimingKey:@YES};AVURLAsset*asset=[[AVURLAssetalloc]initWithURL:urloptions:options];NSArray*metadata=[assetcommonMetadata];for(AVMetadat

iOS - 检测电影已完成

我正在使用MPMoviePlayerViewController播放电影,我创建了一个方法来检测电影何时结束然后运行一个方法:-(void)movieFinishedWithSelector:(SEL)selectors{[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(selectors)name:MPMoviePlayerPlaybackDidFinishNotificationobject:[playermoviePlayer]];}并像这样使用此方法,但不起作用。[selfmovieFi

ios - MPMoviePlayerController 不加载电影

我想使用MPMoviePlayerController在我的iPad应用程序中播放视频。我的问题是,该播放器只显示“正在加载”并且不播放视频。这是我使用的代码:-(void)playMovieFile:(NSString*)fileName{NSString*filePath=[[NSBundlemainBundle]pathForResource:fileNameofType:@"mov"];NSURL*fileUrl=[NSURLfileURLWithPath:filePath];self.moviePlayer=[[MPMoviePlayerControlleralloc]ini

ios - 不要在 xcode 的文档文件夹中显示电影

我创建了一个显示文件夹中文件的应用程序。我有一个.mov格式的文件,我想从文档文件夹中显示它,但是当运行应用程序并单击播放按钮时,不显示这部电影,我看到了这张图片:这是我的代码:(请指导我并告诉我我的错误)-(IBAction)Play:(id)sender{NSString*documentPath=[NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory,NSUserDomainMask,YES)objectAtIndex:0];NSString*file=[documentPathstringByAppending

iphone - 不能让 AVAssetImageGenerator 给我电影的所有帧

我不能让AVAssetImageGenerator给我电影的所有帧。使用这段代码:NSString*path=[[NSBundlemainBundle]pathForResource:@"video"ofType:@"mov"];NSURL*url=[NSURLfileURLWithPath:path];NSDictionary*options=[NSDictionarydictionaryWithObject:[NSNumbernumberWithBool:YES]forKey:AVURLAssetPreferPreciseDurationAndTimingKey];self.ass

iphone - 电影播放完毕后在电影播放器​​中显示控件

我想在电影结束时显示电影播放器​​控件,所以我将观察者添加到NSNotificationCenter:-(void)movieFinishedCallback:(NSNotification*)aNotification{//ObtainthereasonwhythemovieplaybackfinishedNSNumber*finishReason=[[aNotificationuserInfo]objectForKey:MPMoviePlayerPlaybackDidFinishReasonUserInfoKey];if([finishReasonintValue]==0){[se

ios - 如何在 iOS 上播放电影

所以我创建了一个View,其中有一个可以播放电影的按钮。这是该按钮的操作:-(IBAction)playMovie{NSBundle*bundle=[NSBundlemainBundle];NSString*moviePath=[bundlepathForResource:@"sample_iPod"ofType:@"m4v"];NSURL*movieURL=[NSURLfileURLWithPath:moviePath];MPMoviePlayerController*theMovie=[[MPMoviePlayerControlleralloc]initWithContentURL

iphone - MPMoviePlayerViewController 从 Documents 目录播放电影 - objective-c

我在Documents文件夹中有一个名为“Video”的子文件夹。还有一些video.mp4文件。我有这个文件的完整路径,但MPMoviePlayerViewController不想从本地播放视频。这是代码:NSString*path=[[selfgetVideoFolderPath]stringByAppendingPathComponent:@"somevideo.mp4"];NSURL*fURL=[NSURLfileURLWithPath:path];MPMoviePlayerViewController*videoPlayerView=[[MPMoviePlayerViewCo

shell - pig 剧本永远卡在心跳

我已经在一台机器上安装了cloudera5的所有组件:namenode、datanode、hue、pig、oozie、yarn、hbase...我在shell中运行以下pig脚本:sudo-uhdfspig然后在pigshell里跑data=LOAD'/user/test/text.txt'as(text:CHARARRAY);DUMPdata;脚本运行良好但是当在hue浏览器查询编辑器/Pig编辑器上运行这个脚本时,它卡住了,下面是日志:2015-09-1414:07:06,847[uber-SubtaskRunner]INFOorg.apache.pig.backend.hadoo