ios - UIVideoAtPathIsCompatibleWithSavedPhotosAlbum not finding the file -


i trying cleanup deprecated warnings , having trouble migrating

alassetslibrary *library = [[alassetslibrary alloc] init]; if([library videoatpathiscompatiblewithsavedphotosalbum:srcurl]) {     ... 

to

if(uivideoatpathiscompatiblewithsavedphotosalbum(srcurl.absolutestring)) {     ... 

with both same

nsurl *srcurl = ... 

the first call works fine, second 1 gives me following output in console , returns false.

video file:///var/mobile/containers/data/application/8149a5b8-11ea-41e6-b1a7-2ccaabde5e35/tmp/tempaudio.mov cannot saved saved photos album: error domain=nsurlerrordomain code=-1100 "the requested url not found on server." ....... 

any ideas?

replace srcurl.absolutestring srcurl.path.

uivideoatpathiscompatiblewithsavedphotosalbum() expects path, parameter value should not include scheme file://.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -