The included music player in elementary OS is extremely light weight and simplistic. It has minimalist user interface to just play music, build playlist, and that’s it. If you have used it, then you should probably be knowing that the music playback won’t stop when the program is closed. The music playback goes into a compact player mode which is accessible when clicked on the volume icon. The compact mode has the pause, previous, and next track skip controls.
Not all people are comfortable with this option. I personally prefer to stop music playback as soon as I close the music player application. If you had same idea, there is a simple setting change that can put an end to the frustrating ordeal.
Launch Music Player of the elementary OS.
Click on ‘Settings’ (gear icon on the top right corner of the Music Player app) and then ‘Preferences’.
Under the ‘Desktop Integration’ section, disable ‘Continue playback when closed’ and you should be done.
Now music playback with stop as soon as you close the music player. The compact mode is still there underneath the Volume icon. It will be ‘Pause’ status and you can continue to play if desired that way.