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,音频,视频 我无法访问嵌套文件夹的文件??
答案 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];
播放视频
您可以使用MPMoviePlayerController播放本地文件。