-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Chromecast slow buffering #16319
Comments
I can confirm this behavior. In my case latency average is around 30+ seconds. |
Try to change your Another parameter is --- a/homeassistant/components/media_player/cast.py
+++ b/homeassistant/components/media_player/cast.py
@@ -509,7 +509,7 @@ class CastDevice(MediaPlayerDevice):
def play_media(self, media_type, media_id, **kwargs):
"""Play media from a URL."""
- self._chromecast.media_controller.play_media(media_id, media_type)
+ self._chromecast.media_controller.play_media(media_id, media_type, stream_type='LIVE')
# ========== Properties ==========
@property |
I get an error when trying to use the stream_type parameter: |
Are you following my change? I will ask you to change service data if it can be changed in there, which is NOT. |
Sorry... I misunderstood. I added the parameter to the play_media call. I didn't make a change to the cast.py component itself. I use HASSIO and don't think I can (don't know how to) access the component itself. |
So, looks like I need to add it as a custom component and make the change. I'll get back with the results once done. |
So I made the change to the |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
Latest version is installed. Issue still persists. |
I also have the same issue. I'm using a Google Home Mini as an alarm clock and want to use a radio station as wake up music after some TTS. But it takes up to 60 seconds before audio is playing. |
It's most likely an issue with pychromecast not sending the right parameters to the cast for a live stream. @vladosam, @e1miran, @plantoschka can you try adding something like this at the end of your automation: action:
- service: media_player.play_media
entity_id: media_player.living_room
data:
media_content_id: "http://malla.softnet.si:8000/live.mp3"
media_content_type: music
- delay: '00:00:05'
- service: media_player.media_play
entity_id: media_player.living_room |
@emontnemery i don't see any change in adding media_player.play to automation. For eq. this stream starts almost immediately |
Tried you workaround on my automation ( via node-red) : added a call to media_player.media_play The delay, which was up to 30 sec. in my case went down to 5 or 6 seconds, which is definitively an improvement In my case, i try to play a stream from a local icecast |
@vladosam I updated the action example to be a bit more precise. Can you try it again? |
@emontnemery it is late here so i'll try that tomorrow. :) |
@emontnemery no change even with updated example. :( |
According to home-assistant/core#16319 this commit should help with delay. It helped me to go from 17 seconds to 3 seconds delay when using chromecast. Related to #221, #61 and probably #104.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Have you solve this issue please ? |
A potential workaround described here home-assistant/core#16319 (comment) for the 40+ seconds delay after pressing Play button for local Icecast relay of an Internet radion stream
Home Assistant release with the issue: 0.76.2
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.): Linux/Venv
Component/platform: https://www.home-assistant.io/components/cast/
Description of problem: Slow buffering of web radio station. It waits 10 - 15 seconds sometimes more before playing. Google TTS plays almost instantly.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: