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? -

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

ajax - PHP/JSON Login script (Twitter style) not setting sessions -