Downloading videos and storing them locally swift [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Could someone please provide from their experience the step-by-step guide or some tips how to download the videos from some specific url, save it locally (please suggest which database to use CoreData, realm or SQLite) and then show it to the user for example in the collectionView?

Firstly, do not store the videos in a database. Use the documents directory. For downloading the videos you can use the URLSession’s dataTask(with:completionHandler:) method or a library such as Alamofire. Once downloaded to local storage, you can go through the files stored there and filter them by extension if you have more file types than just videos. This can be done asynchronously in viewDidLoad(), storing the URLs into an array, then bind them to your collection and call reloadData().

Related

How to allow users to add photos to an app that could be viewed by others using Firebase [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
If I wanted to make an app that allows users to add their own photos to a UICollectionview what method would I use? Also, how could that be added to Firebase's real-time database?
You need to give your users access to the camera and photo library.
You wouldn’t use the Firebase real-time database, you could use the Firebase Storage module, but I would use a product like Cloudinary, which allows you to do nice things like centring, resizing, facial detection etc.

How to store video's in coredata swift? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I need to download video for offline usesing Core Data. i haven't used core data before please some one explain step by step process
For files like video what you do is downloading the video into the Documents or Cache folder of your app and store the file path (URL) to the video in the core data table

Building app -- need info on viewing other users playlists [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am currently building an app and would like the option of having users view other users playlists. Is this possible?
Of course this is possible. All this data would be in a database, and you would write stored procedures that would fall in a REST API that you would call from your app. You would need to do the filtering of said stored procedure to show users any kind of data you want (if you only want to show 'friends' playlists, or 'people around you'..etc). Remember, it's just all data. Nothing more. You format the data to look nice, but it's still just data.

Caching Images while using Parse [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm creating a social media app.
I want to know a way to cache a users profile picture once downloaded from the Parse network and then each time the app is loaded check if an updated picture has been found and load that one, then cache that one.
I have no idea how to approach this, does anyone have any ideas?
There are plenty of third-party libraries for caching you can find on Github, or you can simply use NSUserDefaults or CoreData to save the pictures(or really anything) to disk. To check if a picture was modified, you can give the picture an identifier, compare it with the response from the server, and re-save the picture, or do whatever is needed.

Uploading image as profile picture [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
My app has to integrate uploading image to set it as profile picture. The thing is all the images has to be stored in web services.
As web service has not been yet created. what is the best way to store images for temporary purpose so that i can integrate it easily when i have been provided with the backend.Sample tutorials can be helpful
My best idea is to use FTWCache (https://github.com/FTW/FTWCache) and cache it localy. Later, using webservice, you can still use your already written cache mechanism to implement NSURLConnection with caching. Profit! ;-)

Resources