What is the problem with using the player component for this? If the sound stops after a while (which is the case on some devices), you will need to use a foreground service to prevent Doze mode.
What is the problem with using the player component for this? If the sound stops after a while (which is the case on some devices), you will need to use a foreground service to prevent Doze mode.