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.
Summary
Add support for loading ringtones directly from a
Fileobject.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:Internally, convert the
Fileto 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.