Skip to content

[Proposal] Add RingtoneSource.FromFile support #3

Description

@AmjdAlhashede

Summary

Add support for loading ringtones directly from a File object.


Use Case

Sometimes developers have audio files stored on device storage or external sources and want to use them directly without converting to Uri or other forms.


Proposed Implementation

Add a new data class to RingtoneSource:

data class FromFile(val file: File) : RingtoneSource()

Internally, convert the File to a usable Uri or handle the raw file stream for playback.


Benefit

This will make the library more flexible and allow using files from arbitrary locations easily.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions