[http] FIX Player Converter State Issue #10066 (#10213)

Signed-off-by: Matthias Scherzinger <scherzin@outlook.com>
pull/10262/head
Scherzin83 2021-02-28 21:31:22 +01:00 committed by GitHub
parent 583509e49d
commit f6282cd50e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -81,6 +81,16 @@ public class PlayerItemConverter extends AbstractTransformingItemConverter {
@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;
}
}