Stream: Only add base url when needed (#21979)
This commit is contained in:
1 parent
d635111e4f
commit
4a4bb43422
3 files changed
+3
-3
No files matched your search
@@ -566,7 +566,7 @@ async def async_handle_play_stream_service(camera, service_call):
|
||||
url = request_stream(hass, camera.stream_source, fmt=fmt)
|
||||
data = {
|
||||
ATTR_ENTITY_ID: entity_ids,
|
||||
ATTR_MEDIA_CONTENT_ID: url,
|
||||
ATTR_MEDIA_CONTENT_ID: "{}{}".format(hass.config.api.base_url, url),
|
||||
ATTR_MEDIA_CONTENT_TYPE: FORMAT_CONTENT_TYPE[fmt]
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user