2013-07-22 109 views
0
NSArray *arr = [[operation.result objectForKey:@"data"] valueForKey:@"name"]; 
NSArray *arrId = [[operation.result objectForKey:@"data"] valueForKey:@"id"]; 
NSArray *folder=[[operation.result objectForKey:@"data"]valueForKey:@"type"]; 
[dictDocument setObject:arrId forKey:@"ID"]; 
[dictDocument setObject:arr forKey:@"Name"]; 
[dictDocument setObject:folder forKey:@"type"]; 

Arrid ===> folder.id,file.id如何訪問Skydrive API中嵌套文件夾的文件?

ARR ===>文件名

夾====>文件Eg.Folder,音頻,視頻 我能的類型無法訪問嵌套文件夾的文件?

回答

0

試試這個,一旦簽入複製包標識符文件就會成功添加或者不成功。

NSString *filepath = [[NSBundle mainBundle] pathForResource:@"vid" ofType:@"mp4"]; 
    NSURL *fileURL = [NSURL fileURLWithPath:filepath]; 
    avPlayer = [[AVAudioPlayer alloc]initWithContentsOfURL:fileURL error:nil]; 
    avPlayer.delegate = self; 
    [avPlayer prepareToPlay]; 
    [avPlayer play]; 

enter image description here

玩VEDIO

可以使用的MPMoviePlayerController播放本地文件。

refer this one for playing vedio file.

+0

@ send2me:現在工作嗎? – Balu

+0

:謝謝你的答覆。但我想播放一個視頻文件不是音頻幫助我 – iTag

+0

然後使用MPVedioPlayer類播放視頻, – Balu

相關問題