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

[Bug]: media picture not always shown. #429

Closed
TheFes opened this issue May 2, 2022 · 6 comments · Fixed by #430
Closed

[Bug]: media picture not always shown. #429

TheFes opened this issue May 2, 2022 · 6 comments · Fixed by #430
Labels
bug Something isn't working

Comments

@TheFes
Copy link

TheFes commented May 2, 2022

Current Behavior

The media_picture is not always shown
image

I suspect it is related to me using a local picture when I start a radio stream using an automation or script.
Current attributes of the media_player shown in the picture:

volume_level: 0.25
is_volume_muted: false
media_content_id: http://icecast.omroep.nl/radio2-bb-aac
media_content_type: music
media_position: 6531.736248
media_position_updated_at: '2022-05-02T08:34:35.133944+00:00'
media_title: Er is maar één NPO Radio 2
media_artist: NPO Radio 2
app_id: CC1AD845
app_name: Default Media Receiver
entity_picture_local: >-
  /api/media_player_proxy/media_player.zolder_mini_martijn?token=some_token
entity_picture: http://192.168.2.3:8123/local/pictures/radio/npo_radio_2.jpg
friendly_name: Zolder Mini Martijn
supported_features: 152463

It works on the more_info display:
image

Expected Behavior

I expect it to look like this (it works when I use a voice command to stream from TuneIn)
image

attributes:

volume_level: 0.25
is_volume_muted: false
media_position_updated_at: '2022-05-02T08:42:47.497212+00:00'
app_id: 12F05308
app_name: TuneIn Free
entity_picture_local: >-
  /api/media_player_proxy/media_player.zolder_mini_martijn?token=another_token
friendly_name: Zolder Mini Martijn
supported_features: 152461
media_content_id: http://icecast.omroep.nl/radio2-bb-aac
media_position: 1.277273
media_content_type: music
media_title: The Pointer Sisters - Happiness
media_artist: NPO Radio 2
entity_picture: https://cdn-albums.tunein.com/gn/TLLBNR91NMg.jpg

Steps To Reproduce

Start a stream using the following service call:
(of course change the picture url to something existing, is has to be a full url though, not an internal HA link and change the media_player to an existing player)

alias: "Turn on Radio 2"
service: media_player.play_media
target:
  entity_id: media_player.some_media_player
data:
  media_content_id: "http://icecast.omroep.nl/radio2-bb-aac"
  media_content_type: music
  extra:
    metadata:
      metadataType: 3
      title: "Er is maar één NPO Radio 2"
      artist: "NPO Radio 2"
      images:
        - url: "http://your_ip:8123/local/pictures/a_picture.jpg"

Environment

- OS: HA OS 8.0 rc3
- Browser: Chrome
- Version: 
- Hassio: 2022.5.0b5
- Media Player: Google Nest Mini

Anything else?

No response

@TheFes TheFes added the bug Something isn't working label May 2, 2022
@TheFes
Copy link
Author

TheFes commented May 2, 2022

Posted the initial post too soon, updated now.

@piitaya
Copy link
Owner

piitaya commented May 2, 2022

If you replace entity_picture value by entity_picture_local value using the developers tools, does it work ?

entity_picture: /api/media_player_proxy/media_player.zolder_mini_martijn?token=some_token

@TheFes
Copy link
Author

TheFes commented May 2, 2022

Yep, that works!
image

@TheFes
Copy link
Author

TheFes commented May 2, 2022

Thanks for the quick response by the way!

@piitaya
Copy link
Owner

piitaya commented May 2, 2022

Ok, so the fix in the linked PR should work 🙂

@TheFes
Copy link
Author

TheFes commented May 2, 2022

Great, looking forward to the next release then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants