downloading video from url in Custom album in Swift - swift

I am looking for the feature just like the Whatsapp has. They have an album named Whatsapp in iPhone Photos app and all the video and photos of whatsapp can be found there.
I have created the album with custom and also able to save image in it, but how can we download video from url directly into the folder ?

Related

In Xcode when I try to upload a video file to firebase I am unable to?

For my app I have fetched the videos from the photo library on my phone and have created a collection view of all the videos. I am able to get the correct file path for each video when I go to upload it to Firebase but it won't let me because I don't have permission to view it.
picture of error in debugger console
I know the function to upload the file to Firebase works because if I access the videos using ImagePickerController and go directly to the video in my photo library I can get the URL from there and upload it.
So to summarize, how do I grant my Xcode project permission to open a video file so the URL can be uploaded to Firebase?
Any help to solve this problem is greatly appreciated!

Retrieve and change data in iPhone photo library

Now, I've managed to get list of album and photos using this module..https://github.com/quickstonesw/Appcelerator-Urban-Image-Library.
So, in my app, I can create new album, delete album, move photo from album to another album and delete photo. When i create album and delete album, it works nicely in app but after creating new album, when check in default photo library, the album is not there. Right now, I'm working on move photo and delete photo.
My question is:
1) if it is possible, how can I add the album that I've created in app to the default photo library?
2) if question 1 is possible, how do I delete it?
3) How do I move photo from album to album and reflect it back to default photo library?
4) delete the photo from photo library if i deleted it in my app
Is all question above possible to be done or not? Is there another module that I can use to achieve it? I'm using titanium latest SDK 3.0.2 and am building for iPhone only.

Streaming video from Facebook

I want to stream a video from Facebook to my site and use my own custom video player (flowplayer for instance) to play it. Basicly I want to access the registered user's videos and play them in my application. is it possible? If it is, how can I achieve that?
Fairly easy, but there are a few steps to go thru.
Grab a list of their videos from the Graph API me/videos using their user access_token
Present user with list of their videos, let user select video to watch.
For the id of the video selected, call the Graph API and FQL the src or src_hq which gives you the link to the mp4 of the video
Point your custom player to the mp4 link.

iOS: get images from gallery

Is there a way to get all gallery photos paths in iOS?
I dont need to pick and display it, i need only the paths.
Check the recently SO post for getting image URL through ALAssest ..
Upload ALAsset URL images to the server
There is another post,
display image from URL retrieved from ALAsset in iPhone

upload photo and publish story using FBConnect

In my iphone app,I want to let the user upload an image to his facebook photo Album and publish a story at the same time.The story's media field contains the uploaded image's url.I successly uploaded the photo and got the result's "link" and "src_small" property.But when I use FBStreamDialog to publish the story,I got:
(source: sinaimg.cn)
At last,I find this:http://developers.facebook.com/live_status#msg_625,it says:
We no longer allow stream stories to contain images that are hosted on the fbcdn.net domain. The images associated with these URLs aren't always optimized for stream stories and occasionally resulted in errors, leading to a poor user experience. Make sure your stream attachments don't reference images with this domain. You should host the images locally.
It seems that I can't finish my job,What's your solution? thanks in advance!
you can't use that picture or the picture from facebook itself
you can upload the picture on other servers or upload it to online photo sharing like picasa
I got this functionality to work with ShareKit - it's really good:
http://www.getsharekit.com/
It's also open source, so you can see how they do it inside...
Good luck!