Skip to content

Commit

Permalink
[http] FIX Player Converter State Issue #10066
Browse files Browse the repository at this point in the history
  • Loading branch information
Scherzin83 committed Feb 22, 2021
1 parent fe7b91f commit 9e8c861
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ public String toString(Command command) {

@Override
public State toState(String string) {
if (string.equals(channelConfig.playValue)) {
return PlayPauseType.PLAY;
} else if (string.equals(channelConfig.pauseValue)) {
return PlayPauseType.PAUSE;
} else if (string.equals(channelConfig.rewindValue)) {
return RewindFastforwardType.REWIND;
} else if (string.equals(channelConfig.fastforwardValue)) {
return RewindFastforwardType.FASTFORWARD;
}

return UnDefType.UNDEF;
}
}

0 comments on commit 9e8c861

Please sign in to comment.