iphone - How to save video from HTTP to photo library in ios? -


i want download video http user's ios device. how use avassetslibrary that? tried got following error:

video /wikipedia/commons/4/4d/f1_vid2.theora.ogv cannot saved saved photos album: error domain=nsosstatuserrordomain code=2 "this movie not played." userinfo=xxxxxxxx {nslocalizeddescription=this movie not played.}

thanks bunch!

my code is:

alassetslibrary *lib = [[[alassetslibrary alloc] init] autorelease];         if ([lib videoatpathiscompatiblewithsavedphotosalbum:videourl]) {           [lib writevideoatpathtosavedphotosalbum:videourl               completionblock:^(nsurl *asseturl, nserror *error) {                   if (!error) {                     result = kifteststepresultsuccess;                     nslog(@"yuanzi: completed writing videos.");                   }                   saved = yes;           }];         } 


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -