Private
Public Access
1
0

Hook up notify slots for some elements of mpris.

This commit is contained in:
2019-04-12 18:09:52 -04:00
parent 32af19f95e
commit 10b41d66a3
4 changed files with 38 additions and 5 deletions

View File

@@ -56,6 +56,28 @@ QStringList MPRISInterface::SupportedUriSchemes()
MPRISPlayerInterface::MPRISPlayerInterface(MiniMediaPlayer *player,QObject* parent) : QDBusAbstractAdaptor(parent),player(player)
{
//Connected Changed values from media player.
}
void MPRISPlayerInterface::mediaPositionChanged(qint64 position)
{
emit positionChanged(Position());
}
void MPRISPlayerInterface::mediaStateChanged(QMediaPlayer::State state)
{
emit playbackStatusChanged(PlaybackStatus());
}
void MPRISPlayerInterface::mediaVolumeChanged(int volume)
{
emit volumeChanged(Volume());
}
void MPRISPlayerInterface::mediaPlaylistChanged(QStringList playlist)
{
emit metadataChanged(Metadata());
}
bool MPRISPlayerInterface::CanControl()