If your video is in the tmp
directory then it isn't in the asset store associated with the ALAssetsLibrary
and you will need to access the video data using standard file loading APIs (like NSFileManager
/ NSData dataWithContentsOfURL:...
.
If you want the video to be managed by the ALAssetsLibrary
, you need to call writeVideoAtPathToSavedPhotosAlbum:completionBlock:
to import the video. The completionBlock
will then provide you with an asset library URL (assetURL
) which can be used to retrieve the video later (from ALAssetsLibrary
).