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") {
|
||||
QVariantMap data = params.value("data").toMap();
|
||||
emit volumeChanged(data.value("volume").toInt(), data.value("muted").toBool());
|
||||
} else if (method == "Player.onPlayerPlay") {
|
||||
} else if (method == "Player.OnPlay") {
|
||||
emit onPlayerPlay();
|
||||
} else if (method == "Player.onPlayerPause") {
|
||||
emit onPlayerPause();
|
||||
} else if (method == "Player.onPlayerStop") {
|
||||
} else if (method == "Player.OnPause") {
|
||||
emit onPlayerPause();
|
||||
} else if (method == "Player.OnStop") {
|
||||
emit onPlayerStop();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void JsonHandler::processActionResponse(const KodiReply &reply, const QVariantMap &response)
|
||||
|
||||
Reference in New Issue
Block a user