Skip to content

Commit

Permalink
Merge pull request #76 from ybizeul/media_player_state_on
Browse files Browse the repository at this point in the history
Set state "1" if result is "playing"
  • Loading branch information
cgiesche committed Feb 7, 2022
2 parents b1c2c45 + 56de6c1 commit 09d0991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Plugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ export default {
if (contextSettings.useStateImagesForOnOffStates) {
if (stateObject.state === "on") {
this.$SD.setState(currentContext, 1);
} else if (stateObject.state === "playing") {
this.$SD.setState(currentContext, 1);
} else {
this.$SD.setState(currentContext, 0);
}
Expand Down

0 comments on commit 09d0991

Please sign in to comment.