objective c - how to access the files of Nested folders in Skydrive API? -
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===>filename
folder====>type of file eg.folder,audio,video can't able access files of nested folders??
try this,and once check in copy bundle identifiers files added succeessfully or not.
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];
for playing vedio
you can use mpmovieplayercontroller play local file.
Comments
Post a Comment