Skip to content

Commit

Permalink
[http] FIX Player Converter State Issue #10066 (#10213)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Scherzinger <scherzin@outlook.com>
  • Loading branch information
Scherzin83 authored Feb 28, 2021
1 parent df2b04a commit cfbc9e0
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 cfbc9e0

Please sign in to comment.