I would like to set the volume of a media player to a defined value 30 minutes after the player has been stopped. But only if the player was stopped by pressing a button.
If I control the player via the native app, the volume should not be reset.
I know how to stop the player by pressing a button, and I know how to reset the volume after a certain time.But I am not clear how to link everything together.
What is the best way to realize this?