Open michaelwoods opened 2 years ago
Hmm, I'm not sure what to do here. I get what you are trying to do, and to cast some of these devices need a public facing URL. But I'm not sure how to make your external_url
map to your internal IP address. If you have multiple cameras, how would HA know which one to route to just from the external URL alone?
For multiple cameras, the internal_url is still the same. It's the Home Assistant http url not camera IPs. The path would be different per camera, essentially HA proxies the stream itself. At least that's my understanding of how HA handles cameras and streaming.
Example:
http://ip_address:8123/api/hls/foo
http://ip_address:8123/api/hls/bar
would become
https://my.external.domain/api/hls/foo
https://my.external.domain/api/hls/bar
The method that this component uses to report its camera's address for the play_stream
service would need to reference the external_url
for a cast-device to play it.
Version of the custom_component
0.9.23
Configuration
Describe the bug
The stream will fail to play and the logs show that an
internal_url
was used (http://ip_address/...) when I do not have that defined in my configuration. I do haveexternal_url
only, to avoid this issue with casting devices.Debug log
Note that I replaced my real internal address with
ip_address
above.