Closed RefineryX closed 2 years ago
It's not an error per se. Packet streaming is somewhat real-time and when pyatv can't keep up the pace and generate new packets in time, then you get that warning. Normally, getting a few of those is not a problem as pyatv will most likely catch up quite quickly (if it's a real problem, then there will be re-transmissions as well). I however don't want to suppress these warnings as they make it obvious if performance is the issue in case someone has problems with streaming. I might be able to accept (I.e. not log) few over a sliding window , just to filter out some noise.
I'm adding a threshold to only start logging these warnings if three packets in a row are late. If that happens there's likely too much stress on the system and streaming will be unstable anyway.
Great solution - thank you.
Just to clarify, does this happen because I have a weak processor? (I'm running a Raspberry Pi 4 4gb).
I have a couple of other questions which I am struggling to get answers for. Can I post them here?=
Let's say there are many factors to take into account. I don't think the CPU performance (RPi 4 in your case) is the biggest issue. It's much more likely the CPU load. But it's hard to say. Having a few of these are not a problem though, pyatv will catch up.
If they are related you can post them here, otherwise I prefer if you open new issues. It's easier for me to keep track and close them when done (issues tend to stay open for a long time otherwise).
They are somewhat related to the HomePods but do let me know and happy to open a new issue - though they are mainly questions at this stage.
input_number
or whatever), changes volume, starts TTS and restores volume afterwards. That forces you to use the script though. Another way is to use an automation that triggers when the device starts to play and app_id
is com.apple.tvairplayd
(active process when AirPlay is used). Then do more or less the same thing: save volume, wait until state is no longer playing and then restore volume again. A bit tricky bit should be possible and will work with the regular TTS service.Fixed according to my earlier comment by #1540.
Describe the bug
When calling
media_player.play_media
in Home Assistant, I receive a lot of errors in the HA logs. Although the content plays successfully, I receive the following errors namely[pyatv.protocols.raop.raop] Too slow to keep up for seqno
.This appears to be present only when using a HomePod Mini. It works fine when using streaming to an Apple TV 4K.
Error log
How to reproduce the bug?
media_player.play_media
service in HAmusic
for 'Content Type'What is expected behavior?
To be able to call the service, it playing and it does not show errors.
Operating System
Linux
Python
3.9
pyatv
2.1.0
Device
HomePod 15.2
Additional context
NA