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]; 

enter image description here

for playing vedio

you can use mpmovieplayercontroller play local file.

refer 1 playing vedio file.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -