PlexMeetsHomeAssistant icon indicating copy to clipboard operation
PlexMeetsHomeAssistant copied to clipboard

Feature Request: Block the Play button for a few seconds (5-10) after clicking once

Open aeternias opened this issue 2 years ago • 0 comments

Describe the bug When I tap multiple times (spam) the play button on any media, Plex on my TV (2021 LG B1 official Plex app) starts the playback but errors out with a message "An error occurred loading items into the play queue". I can hear the show playing in the background but the black screen with the error is above the video and you can't remove it. If I press Play just once and then wait for a few seconds before pressing Play again, it works fine.

To Reproduce Steps to reproduce the behavior:

  1. Go to your library on Home Assistant
  2. Spam click on any media to play
  3. See error on the TV

Expected behavior Spamming Play shouldn't send the play request multiple times (because users can be stupid:), the simplest solution would be to block the Play button for a few seconds (5-10) after clicking once, so the show can start on the TV first.

Checks Please check below if true:

[ ] I am running Home Assistant on HTTP protocol [x] I am running BOTH Home Assistant AND Plex on HTTPS protocol [x] My Plex server is accessible through protocol, port and ip/hostname I have specified for the card. [x] My Plex server is running on HTTPS and has a valid certificate.

Card Configuration I can't as I'm currently not at my holiday home and don't have access to the HASS.

Card Version I can't as I'm currently not at my holiday home and don't have access to the HASS. Probably the latest one since I installed it 2 weeks ago.

Plex Version I can't as I'm currently not at my holiday home and don't have access to the HASS. Probably the latest one since I installed it 2 weeks ago.

Device information Raspberry PI 4

Additional context Playback works without issues, it's just that it bugs out when I spam click play.

aeternias avatar May 05 '22 07:05 aeternias