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

Add constructors for FileDescriptors #172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keyboardr
Copy link

Adds support for creating Mp3Files with FileDescriptors. Fixes #171

Since FileDescriptors contain less information than Files or Paths, some caveats are needed:

  • Saving new files from these Mp3Files is not supported since the absolute path cannot be verified.
  • getFilename() and getLastModified() will throw an exception.
  • getLength() is only valid after initialization (shouldn't be an issue for those using Mp3File, but it is a concern for FileWrapper).

@hennr
Copy link
Collaborator

hennr commented Apr 11, 2022

Thanks for the PR @keyboardr
I am not into android programming, anyone who can offer a review here would be very appreciated.

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

Successfully merging this pull request may close these issues.

Add support for creating Mp3File from FileDescriptor
2 participants