I created an audio recorder app that saves audio files in m4a format. I then decided to add an export feature to allow users to email and text their audio recordings. This works nicely when the audio files are no bigger than 20MB. However, any audio file above 20MB will fail to export. What would be the best way to export files out of the app? I was thinking google drive or dropbox, but the user would have to have a registered account. Are there any services that I can upload a file to and receive a link that can be emailed to the user?
There are plenty of services like that. Dropbox is an example. Here is an overview: http://alternativeto.net/software/dropbox/
Related
I would like to get songs from my computer to my iPhone inside of my own app. This would be a music playing app that would have the ability to load songs into its own directory from some private source like a laptop or cloud storage.
Example: If I have 100 songs on a Google Drive and I write an iOS app that loads those files from the Google Drive into the apps directory.
iOS, iPhone, Swift.
Yes you can download files into your app's Documents directory, which will be private to your app.
Here's a SO question on downloading a file in Swift/iOS that shows some concrete code examples: How to download file in swift?
You can also find many tutorials online on saving files and making HTTP requests in Swift.
You'll need to determine specifically how to make requests to your file provider e.g. Google Drive. This might involve not only the URL itself but also authentication, SSL validation etc. which are deeper topics in themselves but fully supported in Swift/iOS.
Yes, you can definitely download songs to your phone from your computer. You just have to make a directory area in your app and have the song be fetched into that directory.
I am need a solution for protect music file downloaded in an music app.
We have all rights for the audios, so, we need to garante only our app is able to play this audios.
This music app actually is only for streaming. The next update is for implement the functionality for download e play music offline.
I know Spotify , for example, use DRM protection, but it is a little bit controvercious for some people, and I think this is not what we need now.
During my researches, I dont find any concrete solution. So, my questions are which functionalities, libraries or resources can I use to protect the downloaded files.
Maybe I need to encrypt/decrypt the files? But, Swift have a native functionality for this, and have some documentation available?
So, what can I use to protect the audios with Swift, and keep playing the audio only in my own app?
This question gets asked almost daily and the answer is, and will always be, the same - if a user can play your audio on their device, then they can also extract and keep a copy of that audio - no amount of DRM, encryption or any other naive concept anyone dreams up can change this.
You can prevent "script kiddies" from just copying the files off their phone by embedding an encryption key in your app and streaming files through a stream cipher before playing them, but again, it's trivial to reverse engineer and get the key.
You can transcode your .mp3 files to HLS file which will generate one master playlist and several segment files and then you can apply ALS encryption on it using ffmpeg or Apple Media segmenter.
For More Info:
https://www.theoplayer.com/blog/content-protection-for-hls-with-aes-128-encryption
I have integrate Dropbox API (Dropbox API) in my project and want to access only audio files.
Create share links using Dropbox API.
Now, I want to play that song using Jukebox or any audio player from shareable URL.
I have tried multiple links to play using Jukebox, it running fine.
I am facing in only Dropbox shareable link.
The shared links, e.g., from createSharedLinkWithSettings, point to an HTML preview page, and not the file content itself.
If you need the actual file content, e.g., to use it in a media player, you have a few options:
1) Use download(path:rev:overwrite:destination:) to download the file to disk.
2) Use download(path:rev:) to download the file to memory. (Not recommended for large files.)
3) Use getTemporaryLink(path:) to get a temporary link to the file. This may be the best option if you need a URL to give to a media player.
I need to store and constantly update thousands of audio clips and for use with an iOS app. I also need to store metadata with each audio clip. Based on user inputs I need to query the database that the clips are held in and download several clips to a temporary folder in the app so they can be played.
It doesn't seem that a service like Parse can store large audio files.
What would be the best approach for something like this?
I would like to store a file on SD card, lets say an mp3 file and encrypt it.
And would like other apps to be able to play them but BB automatically decrypt them?(Does DRMManager do this?)
Basically, I would like to keep the mp3 files locked to the BB device. If they tried to open the mp3 on say a desktop or another BB, they won't be able to open them.
As long as the mp3s are accessed from the same BB they should open fine, using any mp3 player app.
I believe this is exactly what the enableDRMForwardLock() method in ExtendedFileConnection is for.