Add support for custom go2rtc URLs.

This commit is contained in:
Dermot Duffy
2023-10-07 18:29:31 -07:00
parent cf8935da73
commit db50e36c76
5 changed files with 306 additions and 16 deletions
+4 -1
View File
@@ -249,7 +249,8 @@ cameras:
| Option | Default | Overridable | Description |
| - | - | - | - |
| `modes` | `[webrtc, mse, mp4, mjpeg]` | :white_check_mark: | An ordered array of `go2rtc` modes to use. Valid values are `webrtc`, `mse`, `mp4` or `mjpeg` values. |
| `stream` | Determind by camera engine (e.g. `frigate` camera name). | :white_check_mark: | A valid `go2rtc` stream name. |
| `stream` | Determined by camera engine (e.g. `frigate` camera name). | :white_check_mark: | A valid `go2rtc` stream name. |
| `url` | Determined by camera engine (e.g. the `frigate` engine will automatically generate a URL for the go2rtc backend that runs in the Frigate container). | :white_check_mark: | The root `go2rtc` backend URL the card should stream the video from. This will only need to be set in advanced cases -- for the vast majority of people the default will work. Example: `http://my-custom-go2rtc:1984` |
#### Live Provider: Camera WebRTC Card configuration
@@ -1745,6 +1746,7 @@ cameras:
- mp4
- mjpeg
stream: sitting_room
url: 'https://my.custom.go2rtc.backend'
- camera_entity: camera.sitting_room_webrtc_card
live_provider: webrtc_card
webrtc_card:
@@ -1816,6 +1818,7 @@ cameras_global:
- mp4
- mjpeg
stream: sitting_room
url: 'https://my.custom.go2rtc.backend'
webrtc_card:
# Arbitrary WebRTC Card options, see https://github.com/AlexxIT/WebRTC#configuration .
entity: camera.sitting_room_rtsp