You can display a button on the panel to stop and resume playing music (for Yandex music) without switching to the tab.
What is Yandex Play?
Yandex Play is a Firefox add-on that provides a music control button for Yandex music. You can easily stop and resume playing music, switch tracks, mute or unmute sound, and view song groups without the need to switch tabs.
Double-click to switch to the next track. When you hover over the button display song-group. When you click the left mouse button on the icon, a context menu appears with the ability to switch/next/previous tracks , mute/unmute sound.
Git project: https://github.com/hacpatb/YaPlay
Yandex Play is not very risky to use and it requires a lot of sensitive permissions. Avoid installing this add-on unless you absolutely trust this publisher.
Yandex Play has earned a fairly good reputation and likely can be trusted.