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

php - Extract Text from HTTP referer -

java - Callback from new thread to class from which thread was initiated -

Receive udp packets in android gstreamer -