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

Support for SAF URI (content://) as AudioSource Input on Android #1383

Open
Vito0912 opened this issue Dec 30, 2024 · 0 comments
Open

Support for SAF URI (content://) as AudioSource Input on Android #1383

Vito0912 opened this issue Dec 30, 2024 · 0 comments
Assignees
Labels
1 backlog enhancement New feature or request

Comments

@Vito0912
Copy link

Is your feature request related to a problem? Please describe.

Currently, there isn't a direct issue. However, as Android continues to enforce stricter permissions and security policies regarding file access, managing files outside of the application sandbox has become more strict in the newer versions. Specifically, for files that need to be stored or accessed externally on Android devices, the Storage Access Framework (SAF) using URI paths like content:// are used.

The challenge arises from the fact that there doesn’t appear to be any straightforward way to use these SAF file URIs as an input for AudioSource.

Describe the solution you'd like
It would be ideal to have native support or a feature within the library to directly use SAF URIs (e.g., content://) as input for AudioSource.

Describe alternatives you've considered
As a temporary solution, I’ve tried copying the audio files from their SAF location into the app’s private storage or a shared storage location that is accessible for the current AudioSource implementation. While this workaround is functional, it does not really work for many files or big files.

This approach also feels inefficient, particularly for larger files or scenarios where users expect instant playback/editing of an audio track they have selected. Having to copy files each time adds latency.

Additional context
I hope I did not oversee something reagarding this is already possible. Anyways thanks for the awesome software.

@Vito0912 Vito0912 added 1 backlog enhancement New feature or request labels Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 backlog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants