fix player notifications
This commit is contained in:
parent
fafb54834f
commit
95950f6327
@ -54,14 +54,13 @@ void JsonHandler::processNotification(const QString &method, const QVariantMap &
|
|||||||
if (method == "Application.OnVolumeChanged") {
|
if (method == "Application.OnVolumeChanged") {
|
||||||
QVariantMap data = params.value("data").toMap();
|
QVariantMap data = params.value("data").toMap();
|
||||||
emit volumeChanged(data.value("volume").toInt(), data.value("muted").toBool());
|
emit volumeChanged(data.value("volume").toInt(), data.value("muted").toBool());
|
||||||
} else if (method == "Player.onPlayerPlay") {
|
} else if (method == "Player.OnPlay") {
|
||||||
emit onPlayerPlay();
|
emit onPlayerPlay();
|
||||||
} else if (method == "Player.onPlayerPause") {
|
} else if (method == "Player.OnPause") {
|
||||||
emit onPlayerPause();
|
|
||||||
} else if (method == "Player.onPlayerStop") {
|
|
||||||
emit onPlayerPause();
|
emit onPlayerPause();
|
||||||
|
} else if (method == "Player.OnStop") {
|
||||||
|
emit onPlayerStop();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void JsonHandler::processActionResponse(const KodiReply &reply, const QVariantMap &response)
|
void JsonHandler::processActionResponse(const KodiReply &reply, const QVariantMap &response)
|
||||||
|
|||||||
Reference in New Issue
Block a user