#Google Cast inconsistent playback

1 messages · Page 1 of 1 (latest)

olive flame
#

Can anyone test what happens when you call media from these below urls to Google Cast using a group with Mini's AND a hub?

http://192.168.2.51:8123/local/path/mixdown.flac
https://ha.domain.com/local/path/mixdown.flac

target:
  entity_id: media_player.alle_speakers
data:
  media_content_id: media-source://media_source/local/audio/mixdown.flac
  media_content_type: audio/flac```


And also what happens if you use the media picker and let it add media-source:// ? See above
torn waspBOT
#

@olive flame To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

olive flame
#

According to the documentation both direct url and outside url should work

mellow helm
#

See all this time and you could have just asked a question

#

google cast does not allow non-ssl casting

#

i.e. http will not work, only https

#

if you want to cast locally for google w/o doing your own SSL, then you can set up a plex server and cast from that. That's what I did.

#

@olive flame ^

olive flame
mellow helm
#

You're looking at the cast documentation

#

google has this restriction, not cast

olive flame
#

which one do you mean?

mellow helm
#

right, again, this is a goolge cast limitation, not a cast limitation

#

it's a google device, you can cast to non google devices and local will work

olive flame
#

but this one is titled Google Cast?

mellow helm
#

if you cast to a google cast device, it requires SSL

olive flame
#

oh wait

#

this is what you mean: GOOGLE CAST DEVICES
The Google cast devices (Google Home, Chromecast, etc.) present the following problems:

They reject self-signed certificates.

They do not work with URLs that contain hostnames established by local naming means. Let’s say your Home Assistant instance is running on a machine made known locally as ha. All your machines on your local network are able to access it as ha. However, try as you may, your cast device won’t download the media files from your ha machine. That’s because your cast device ignores your local naming setup. In this example, the say service creates a URL like http://ha/path/to/media.mp3 (or https://... if you are using SSL). If you are not using SSL then setting an internal URL that contains the IP address of your server works around this issue. By using an IP address, the cast device does not have to resolve the hostname.

mellow helm
olive flame
#

the (s) is between brackets

#

means optional?

mellow helm
#

no

olive flame
#

I've never seen someone refer to https as http(s) unless they mean the s is optional tbf

mellow helm
#

Ok

#

you can do it all w/in HA if you want

#

or always use your external url

olive flame
#

so what is your raw link you use from plex?

mellow helm
#

exactly what's in the documenation right there

#

integrate plex into HA

#

after making your plex server

olive flame
#

ah okay: basically this is wrong then:

#

I can't past images ?

mellow helm
#

share images via an image sharing site, images are discouraged in general chat because people always post pictures of code

#

which makes it 100x harder to help

olive flame
#

the examples are wrong them

#

then*

#

these would only work on my devices individually

#

but sending it to the speaker group this doens't apply and I'd need to have the plex method OR the full external url, correct?

mellow helm
#

It just needs SSL

#

so, if your external URL has SSL, then that's what you'd use

olive flame
mellow helm
#

Probably, I don't have it memorized, I just remember the paths I took and where I ended up

#

I went through this 4 years ago or so

#

the easiest way to solve this by far was to make your own plex server

#

all the other routes were a pain in the ass

olive flame
#

ha

#

true

#

Should work with jellyfin/emby then to correct?

mellow helm
#

yeah, I would assume so

olive flame
#

yeah it's not really an issue using the outside link (only if internet goes out) but I'll try the plex or something

#

thanks 🙂