core: The m3u8 can't play via chrome cast on Home Assistant 2021.12.1

The problem

I have try to play m3u8 urls via chrome cast by using service play media without successfull. The urls link are still alive The other services are still working such as media extractor or TTS ( not include m3u8 file or urls link) When I use CastRecevied on Android for testing, it just show Logo and title of Home Assistant that lower version don’t have that.

What version of Home Assistant Core has the issue?

Home Assistant 2021.12.0

What was the last working version of Home Assistant Core?

Home Assistant 2021.11.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Google Cast

Link to integration documentation on our website

https://www.home-assistant.io/integrations/cast

Example YAML snippet

service: media_player.play_media
target:
  device_id: 8c496601e0a3fd307af11919e33674cb
  entity_id: media_player.samsung_s9
data:
  media_content_id: >-
    https://str.vov.gov.vn/vovlive/vov1vov5Vietnamese.sdp_aac/chunklist_w1174318354.m3u8
  media_content_type: video

Anything in the logs that might be useful for us?

Logger: homeassistant.components.cast.media_player
Source: components/cast/media_player.py:320
Integration: Google Cast (documentation, issues)
First occurred: 9:59:42 AM (52 occurrences)
Last logged: 6:01:38 PM

Failed to cast media https://str.vov.gov.vn/vovlive/vov1vov5Vietnamese.sdp_aac/chunklist_w1174318354.m3u8. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 20 (9 by maintainers)

Most upvoted comments

Thanks a lot @vikte, I can reproduce it now 👍

I noticed the same issue casting Twitch streams using media_extractor.play_media service. It broke after upgrading to 2021.12.0.

Log shows:

Failed to cast media **URL**.m3u8. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

If I navigate to the URL from the log, it works fine.

I have the same problem as @metec22. I’m using the media extractor on https://www.twitch.tv/therunningmanz (and other twitch streams) to cast to a Google Nest Hub (1st gen). It used to work fine before the upgrade to 2021.12. Now it just shows the HA logo, in the HA logs I get similar entries to this:

Failed to cast media https://video-weaver.waw01.hls.ttvnw.net/v1/playlist/CrsEEexebHC65kEnJMP378YJy6l8oyq6jcPT53e3mniTuEm4MnXwjhzbYsDmUgPCEY9XPCIDkwWJIr71-N0A_dzYmahdq5a1hTMkT9rZ_Rk3Pp6vIR5exZp3mXUq1jpWLDGHAUrvDvPgrJvlTd57rGXJspR3-huPDVZcntZvM5F3WOtOPJQZkKQ0DDawmZqKIYsf9KEMv_gzbHYxYXaA1Vjaa4xUdyp5AcsINXMGHqLTv1OZ_ZvxpsZ8g6mgIvSvu30J1-d9_S7Cv1JfjdTqfTfEexOaQ0_M2q06s0hozW3OlAsmEKfaQpFPNmvjyY9CVbrNhDimE4BjI9GMgFk1Lzp44jrKWj3f13Xua7lMLoguZ5a3_iOHbBKtrT4Nstpb22OXs-gX0EmdNBOBSzrzRjuWkggbECRr9derZkXfkCuYiKUlRQxXSBoi3IATtyhlpJF866TXSNLzSVf3ePacVral7HNY_chGPh2vcsGXAAfsveXp4yWf6U2SNZpSMF4xCEIgpKy8h4kDt7rfqp_anBd-Svo64tRaMxcrjc1GZY9t4jDpfmp7E-Cm81TWRwa5q3XqWunH2zdqYUgBv434mK65C91moJgH1cT6-Nk1eWWsxFlVlWz9r2Upkdz24lXLcu4mZzToNl4R-9SK_nNntjzzhsRfKa5FYGEwmX69cDTj0oIXSbXP0wt6j_ND5ElkLDvo_7SzELD5YuAqmUCKGRefH2Nzb176qrAsY8o3cjx3zClCj0IuEii4vwkeYBoM19ZehmkhZ0OWI68GIAEqCWV1LXdlc3QtMjDEAg.m3u8. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

The service call I’m using:

service: media_extractor.play_media
data:
  media_content_id: https://www.twitch.tv/therunningmanz
  media_content_type: VIDEO
target:
  entity_id: media_player.office_display

I’ve also tried changing the media_content_type to other possible values with no success.

@emontnemery I am casting to a real chromecast device. I tested a few different ones. All produce that same error that the URL is not reachable.

Yes, it is