[Linux] Don't use playerctl for current media state

This commit is contained in:
Tim Gromeyer
2025-06-08 18:42:37 +02:00
committed by Tim Gromeyer
parent aaf82c9738
commit 48ae249405
2 changed files with 3 additions and 6 deletions

View File

@@ -43,6 +43,7 @@ public:
void play();
void pause();
MediaState getCurrentMediaState() const { return m_mediaState; };
Q_SIGNALS:
void mediaStateChanged(MediaState state);
@@ -59,6 +60,7 @@ private:
EarDetectionBehavior earDetectionBehavior = PauseWhenOneRemoved;
QString m_deviceOutputName;
PlayerStatusWatcher *playerStatusWatcher = nullptr;
MediaState m_mediaState = Stopped;
};
#endif // MEDIACONTROLLER_H