Assuming that in macOS, when PlayPause key pressed and no media session exists then a default behavior (open Apple Music) will be triggered.
Actual Result:
Current behavior of noTunes (I have figured out) is: monitor Apple Music process, if necessary then quit Apple Music.
Expected Result:
While the behavior I expected is: monitor system check if any media sessions 1 exist, when there is no media session then create a dummy media session which will be pure audio, absolute silent, and short in duration. Such that when PlayPause key pressed and no other media session exists, the dummy media session may be triggered without triggering default behavior (open Apple Music).
Note: all above are just assumptions/concepts, verification and feasibility check are needed.
Assuming that in macOS, when PlayPause key pressed and no media session exists then a default behavior (open Apple Music) will be triggered.
Actual Result:
Current behavior of noTunes (I have figured out) is: monitor Apple Music process, if necessary then quit Apple Music.
Expected Result:
While the behavior I expected is: monitor system check if any media sessions 1 exist, when there is no media session then create a dummy media session which will be pure audio, absolute silent, and short in duration. Such that when PlayPause key pressed and no other media session exists, the dummy media session may be triggered without triggering default behavior (open Apple Music).
Note: all above are just assumptions/concepts, verification and feasibility check are needed.
Footnotes
except the dummy media session created by noTunes itself ↩