openhab-addons: [lgwebos] mediaPlayer does not accept NextPreviousType

Expected Behavior

Within a mediaPlayer clicking the Next icon should move to the next track Similarly clicking Previous icon should move to the previous track (Pause and Play work as PlayPauseType input is accepted)

Current Behavior

==> /var/log/openhab2/openhab.log <== 2020-04-02 21:25:18.529 [DEBUG] [ebos.internal.handler.LGWebOSHandler] - handleCommand(lgwebos:WebOSTV:a3c77ba0-654a-0982-c480-f726662f05b8:mediaPlayer,NEXT) 2020-04-02 21:25:18.534 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Only accept PlayPauseType, RewindFastforwardType, RefreshType. Type was class org.eclipse.smarthome.core.library.types.NextPreviousType.

Possible Solution

Steps to Reproduce (for Bugs)

  1. Create an Item Player with Channel mediaPlayer
  2. Send a command NEXT or Previous (either clicking within Controls on Paper UI or create a Sstemap including a Player and click within Basic UI or create a rule that sends command)

Context

Control apps on webOS TV

Your Environment

Raspberry Pi 3 ARMv7 Raspbian GNU/Linux 9 (stretch)

openHAB 2.5.4 Build #74

LG web OS Binding 2.5.4.202004020414

Item Player TV_Player { channel=“lgwebos:WebOSTV:a3c77ba0-654a-0982-c480-f726662f05b8:mediaPlayer”}

Wihin a Rule TV_Player.sendCommand( NEXT )

==> /var/log/openhab2/openhab.log <== 2020-04-02 21:25:18.529 [DEBUG] [ebos.internal.handler.LGWebOSHandler] - handleCommand(lgwebos:WebOSTV:a3c77ba0-654a-0982-c480-f726662f05b8:mediaPlayer,NEXT) 2020-04-02 21:25:18.534 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Only accept PlayPauseType, RewindFastforwardType, RefreshType. Type was class org.eclipse.smarthome.core.library.types.NextPreviousType.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Now that I checked the code and tested the media player feature, I can see that something is missing in the code, the state of the channels mediaPlayer and mediaStop is never updated. As an example, when PLAY command is pushed by the user and you receive a positive feedback, you should update the state of these 2 channels accordingly. I will try to improove that.

@sprehn: Thank you for getting back to me and indeed for all your work on the lgwebos binding.

I am self-isolating due to the coronavirus at the moment and set myself a project to get to grips with openHAB to control my entertainment system. It is proving to be a most enjoyable way to isolate 😃

Option A Any pointers as to how to implement ssap within my project?

Option B I have tried TV_Player.sendCommand( RIGHT ) from inside a rule called “skip” It generates this error 2020-04-03 23:40:14.540 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'skip': The name 'RIGHT' cannot be resolved to an item or type

But… For the PLEX app on my webOSTV TV_RCButton.sendCommand("RIGHT") via a rcButton channel works 😃

Thanks for the pointer.