2012-05-24 236 views

回答

1

這將使您的應用程序的大尺寸不好...... &它也需要時間來啓動,而不是保存所有的視頻你可以讓用戶從服務器上下載該視頻,之後它將是保存在烏拉圭回合文檔目錄中,以便烏爾應用程序將不大尺寸的.............

0

它在哪裏位於本地

NSURL *url = [NSURL URLWithString:[[NSBundle mainBundle] pathForResource:@"videoname" ofType:@"mov" inDirectory:@""]]; 

,並與

MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:videoURL]; 
[[player view] setFrame:[self.view bounds]]; // Frame must match parent view 
[self.view addSubview:[player view]]; 
[player play]; 
[player release]; 

編輯: -

確切回答這個問題是NO,它不會讓你的應用程序慢,但是,是它生病需要一些時間來加載視頻在你的應用程序,時間將取決於視頻數你正在加載你的APP。對此的解決方案是你必須爲ALAssetLibaries使用塊。

看一看這個ALAssetLibary Apple's class reference

它可能會幫助你,如果沒有聯繫我。謝謝:)