WebRTC: WebRTC Dashcast Nest Google Hub stops working

I have a Google Nest Hub and Home Assistant and also WebRTC Installed. My Cameras are Ubiquiti cameras and in the options for the camera I turned on RTSPS Link for High Definition.

I created a script:

alias: Streaming Outside Camera to Kitchen Display
sequence:
  - service: webrtc.dash_cast
    data:
      entity_id: media_player.kitchen_display
      url: rtspx://11.0.0.71:7441/{UniqueIdentifierWasHere}
      force: true
mode: single
icon: mdi:webcam

When I tell the google hub the alias above it starts displaying and I can see the camera feed with about a 2 - 3 second lag. But after about 5 seconds the stream goes black and does not load back up. If I close out and say the alias again it works again for about 5 seconds and the stream goes black.

I turned on Debug logging but I am not sure where to go to see the debug logging. I went to system -> Logs and dont see anything in there around WebRTC.

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

I think I got it now… not sure why it didnt take the first time… The steps this time were:

  1. get the repo direct from master branch
  2. delete the WebRTC integration in HASS
  3. copy the custom_components/webrtc repo structure over the HASS custom_components\webrtc structure
  4. add back the WebRTC integration
  5. upgrade HASS from 2024.2.5 to 2024.3
  6. test dash_cast service --> success

Thanks @hankfic @AlexxIT

Using the Medium Resolution (1280x720) link from Unifi Camera seems to work. I will test it over the next couple of days and then close out this question. Thanks for your help.