Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change audio file download location #138

Open
ericrohlman opened this issue Aug 16, 2021 · 3 comments
Open

Change audio file download location #138

ericrohlman opened this issue Aug 16, 2021 · 3 comments
Assignees

Comments

@ericrohlman
Copy link

Add the ability to alter the remote audio file download location.

Default location is the user's documents directory.

@tanhakabir
Copy link
Owner

Created an experimental entrympoint to set download location through SAPlayer.Downloader.downloadDirectory. I didn't well test this but I recommend setting the directory before performing any downloads. Also it could be difficult to retrieve files if you forget which directory you saved it in (I haven't added anything to search all your files).

When you download a file you get the url of where it was saved back, I recommend saving that for good measure if you're going to be messing around with directories.

@ericrohlman
Copy link
Author

Thanks for the reply! Excellent work on the player library. We are using it to play all of our audio files (offline and online) for the National Spelling Bee iOS app.

Ended up just keeping them in the Documents directory, mark the URL with a no-backup, and then just filter the files with 'mp3' filetypes when a user clears the audio cache?

You cool with us adding an acknowledgment in our upcoming release? New release should be week of 8/23.
https://apps.apple.com/us/app/word-club-spelling-vocabulary/id1479862742

@tanhakabir
Copy link
Owner

Woah very cool! Yes of course! I appreciate the shoutout 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants