-
Notifications
You must be signed in to change notification settings - Fork 169
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
Can't play to multiple camera media_players at the same time #660
Comments
Show how you call service |
This is how:
|
Show how you setup media_player. Are you sure it support two way audio and you choose right audio codec? |
do you have suggestions what codec to use? they are added using frigate, most of them using the tapo protocol. I also notice on all my camera's that the sound crackles/lags the first time playing something after a while. if i then repeat the same command immediately after, it's usually playing fine. perhaps i should first play a empty sound and then play the actual sound, it might improve it. Here is the YAML to execute playing a sound on a tapo camera:
And this is how the cameras are added in frigate:
(the aac is needed or else recordings will not have sound) And finally, this is the part from the home assistant configuration.yaml how the media players are added.
|
Tapo cameras uses |
This issue still remains.
And the following does not work. only one camera plays a sound and then i get "unknown error" reported by home assistant.
Note the only difference is multiple targets/media players. If i make it a single media player, everything plays on every camera, but with delays so that is not optimal.. |
Well. I don't know what is happening in your case. I have tested similar situation without any problem: action: media_player.play_media
target:
entity_id:
- media_player.dahua_camera
- media_player.tapo_camera
data:
media_content_id: media-source://media_source/local/pooh.mp3
media_content_type: audio/mpeg |
I have around 8 camera's that i use as media_player in configuration.yaml and i can send audio files to all of them.
However when i try to send a audio file to 2 media players at the same time, it plays it on just 1 camera and the other is ignored. after waiting a bit i get a "error", without it saying what the error exactly is.
In the home assistant core logs, i find the following that could be related:
If i try to make multiple actions, each with the same sound to just 1 mediaplayer entity, it works, but with delays of course, so its not ideal.
The text was updated successfully, but these errors were encountered: