mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-13 20:36:29 +00:00
Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
ed5389cbf3
commit
cad34a6393
@ -67,7 +67,7 @@ class MyCamera(Camera):
|
||||
|
||||
The stream source should return an RTSP URL that is usable by ffmpeg. Requires `SUPPORT_STREAM`.
|
||||
|
||||
A camera entity with a stream source by default use `STREAM_TYPE_HLS` to tell the frontend to use an HLS feed with the `stream` component. This stream source is also be used with `stream` for recording.
|
||||
A camera entity with a stream source by default uses `STREAM_TYPE_HLS` to tell the frontend to use an HLS feed with the `stream` component. This stream source will also be used with `stream` for recording.
|
||||
|
||||
```python
|
||||
class MyCamera(Camera):
|
||||
@ -95,7 +95,7 @@ class MyCamera(Camera):
|
||||
|
||||
### WebRTC Streams
|
||||
|
||||
WebRTC enabled cameras can be used with the home assistant frontend. Requires `SUPPORT_STREAM`. A camera entity may set `frontend_stream_type` to `STREAM_TYPE_WEB_RTC` and implement the signal path to pass the frontends SDP offer to the
|
||||
WebRTC enabled cameras can be used with the home assistant frontend. Requires `SUPPORT_STREAM`. A camera entity may set `frontend_stream_type` to `STREAM_TYPE_WEB_RTC` and implement the signal path to pass the frontend's SDP offer to the
|
||||
device, and return back the answer. The stream is initiated from the frontend which talks directly to the device.
|
||||
|
||||
WebRTC streams do not use the `stream` component and do not support recording.
|
||||
|
Loading…
x
Reference in New Issue
Block a user