Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media Image doesn't display in Universal Media Player #1224

Closed
willscottuk opened this issue May 29, 2018 · 4 comments
Closed

Media Image doesn't display in Universal Media Player #1224

willscottuk opened this issue May 29, 2018 · 4 comments

Comments

@willscottuk
Copy link

Home Assistant release with the issue: 0.70.0

Last working Home Assistant release (if known): Not Known

Browser and Operating System: Chrome (66.0.3359.181) / Safari (11.1) on MacOS

Description of problem:

(Apologies if this is a backend rather than a frontend problem - happy to move it there if needed!)

The Universal Media component is no longer displaying the media image from the currently active player. That image displays correctly in the card for the active media player.

screenshot 2018-05-29 16 24 32

The state attributes for both the universal and regular media_players has the same url for entity_picture but the universal media_player causes the following error in the log.

Javascript errors shown in the web inspector (if applicable) From main Home Assistant log:

2018-05-29 16:41:34 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 977, in send_image
    data, content_type = await player.async_get_media_image()
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 511, in async_get_media_image
    return await _async_fetch_image(self.hass, url)
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 909, in _async_fetch_image
    response = await websession.get(url)
  File "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/client.py", line 313, in _request
    ssl=ssl, proxy_headers=proxy_headers, traces=traces)
  File "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 210, in __init__
    self.update_host(url)
  File "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 253, in update_host
    raise InvalidURL(url)
aiohttp.client_exceptions.InvalidURL: /api/media_player_proxy/media_player.livingroomtv?token=53ff6a0dd6c3fd4e3fa587aea18aacda024146fa914b80e27021bf7f4d15ec3b&cache=ebc1dbb0e7bc2af4

Additional information:

@balloob
Copy link
Member

balloob commented May 30, 2018

Ah, this is a backend issue but it is triggered by the frontend. I will put it on my list.

@azogue
Copy link
Member

azogue commented Jul 20, 2018

This is the same error I've found for Kodi, and it's this backend issue #14782

The fix proposal is in #15572

@blackjid
Copy link

Hi, it looks that his problem is not really solved. I have a universal media player and the image is not showing in the media-control card with lovelace.

This is the websockets frame where the thumbnail is requested
image

This is the frames with the response
image

@iantrich
Copy link
Member

Don't comment on closed issues, please. Open a new issue and reference this.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants