如何在Skydrive API中访问嵌套文件夹的文件?

时间:2013-07-22 04:52:20

标签: objective-c onedrive

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

ARR ===>文件名

文件夹====>文件类型Eg.Folder,音频,视频 我无法访问嵌套文件夹的文件??

1 个答案:

答案 0 :(得分: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

播放视频

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

refer this one for playing vedio file.