In the end I used the code below to have it play the RTSP stream on VLC in the background in addition to a loud notification. I got it to work! Thanks to /u/shakuyi on Reddit for their help as well as ChrisRosenkreuz23 on the discord! ° Use “command broadcast intent” in the notification to get it to play on VLC on the phone (also seems to only work if the screen is on and phone is unlocked and have been unable to figure out the right intents to get it to play a stream)Īny help at all would be greatly appreciated! Thanks!
#ANDROID PLAY SOUND MOD#
° Use Browser Mod media player from the camera:play_stream service (works on other audio-only media players like Google Home Mini but does not work for the Browser Mod media players) ° Use Browser Mod to make the companion app a media player (able to play mp3 files either locally or online using the media_ay_media service, but cannot get it to play an audio stream and it only plays if the phone screen is on and the app is open in the foreground) ° Use Browser Mod to expand the More Info card for the camera (which sometimes auto-plays but does not other times, I have been unable to figure out the right conditions to make it auto-play every time and have been unable to find a setting to always auto-play) ° Use the notification commands to turn on the screen (although it does not get past the lockscreen even if the phone is unlocked via Smart Lock but needs to be swiped to get to the home screen) and open the app to the lovelace page for the monitor
#ANDROID PLAY SOUND ANDROID#
° Set custom notification sound for that channel on my phone since Android app does not support custom notification sounds on the Home Assistant side (phone allows mp3 or other media file, but I cannot find a way to point to an audio stream and not a singular file) ° Set the notification to be priority and alarm stream so it goes to the phone fast and reliability ° Use ffmpeg and automations to send a notification to the companion app when noise is detected ° Setup camera as RTSP stream into Home Assistant
![android play sound android play sound](https://i.ytimg.com/vi/7UT886Te8cY/hqdefault.jpg)
I built a custom Baby Monitor similar to the one in the guide, but have been trying to find a way to pass on the audio from the monitor camera to the phone as the notification sound (or, alternatively played even if the phone screen is off in addition to the notification sound) so that we can instantly hear it without having to open the companion app, go to the correct lovelace page, click on more info for the camera, and press play to get the audio.
![android play sound android play sound](https://www.tecnobreak.com/wp-content/uploads/26-jogos-e-apps-temporariamente-gratuitos-na-google-play-store-para-android-og.jpg)
![android play sound android play sound](https://i.ytimg.com/vi/J-5nQGbvO4s/maxresdefault.jpg)
Been using Home Assistant for a little over a year and have been loving it!