ios - How to save video from document directory to gallery? -


this question has answer here:

how save video in document directory gallery in ios,here downloaded video server , saved in document directory , want move gallery.

uisavevideoatpathtosavedphotosalbum(sourcepath,nil,nil,nil); 

you can pass sourcepath

nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes); nsstring *documentsdirectory = [paths objectatindex:0]; 

append path or file name sourcepath.

nsstring *sourcepath = [documentsdirectory stringbyappendingpathcomponent:@"youvideo.mp4"];  

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 -