@@ -81,7 +81,7 @@ Component **doesn't create devices and entities**. It creates only two services
81
81
82
82
## Custom card
83
83
84
- As a ` url` you can use any protocol supported in go2rtc or specify the stream name from the go2rtc config.
84
+ As a ` url` you can use any protocol supported in go2rtc or ** specify the stream name** from the go2rtc config.
85
85
As a `entity` you can use almost any camera from Hass.
86
86
87
87
**Minimal**
93
93
94
94
**or**
95
95
96
+ ` ` ` yaml
97
+ type: 'custom:webrtc-camera'
98
+ url: 'camera1' # stream name from go2rtc.yaml
99
+ ` ` `
100
+
101
+ **or**
102
+
96
103
` ` ` yaml
97
104
type: 'custom:webrtc-camera'
98
105
entity: camera.generic_stream # change to your camera entity_id
@@ -104,22 +111,28 @@ entity: camera.generic_stream # change to your camera entity_id
104
111
type: 'custom:webrtc-camera'
105
112
streams:
106
113
- url: go2rtc_stream_hd
107
- name: HD
114
+ name: HD # name is optional
108
115
mode: webrtc # mode is optional
109
116
- url: go2rtc_stream_sd
110
117
name: SD
111
- mode: mse
118
+ mode: mse
112
119
` ` `
113
120
114
121
**Full**
115
122
123
+ **All settings optional!** Only required setting - `url` or `entity` or `streams`.
124
+
116
125
` ` ` yaml
117
126
type: 'custom:webrtc-camera'
127
+
118
128
url: 'rtsp://rtsp:[email protected] :554/av_stream/ch0'
129
+ entity: camera.generic_stream
130
+ mode: webrtc,webrtc/tcp,mse,hls,mjpeg # stream technology, default all of them
131
+ server: http://192.168.1.123:1984/ # custom go2rtc server address, default empty
119
132
120
133
ui: true # custom video controls, default false
121
134
122
- digital_ptz: # digital zoom and pan via mouse/touch. Defaults to :
135
+ digital_ptz: # digital zoom and pan via mouse/touch, defaults :
123
136
mouse_drag_pan: true
124
137
mouse_wheel_zoom: true
125
138
mouse_double_click_zoom: true
@@ -143,8 +156,6 @@ shortcuts: # custom shortcuts, default none
143
156
service: switch.toggle
144
157
service_data:
145
158
entity_id: switch.camera_record
146
-
147
- mode: webrtc,mse,hls,mjpeg # also available - webrtc/tcp
148
159
` ` `
149
160
150
161
Pan, tilt, zoom controls : [PTZ config examples](https://github.com/AlexxIT/WebRTC/wiki/PTZ-Config-Examples).
0 commit comments