Classes | |
| class | _CameraRtspToWebRTCProvider |
| class | CameraWebRTCLegacyProvider |
| class | CameraWebRTCProvider |
| class | WebRTCAnswer |
| class | WebRTCCandidate |
| class | WebRTCClientConfiguration |
| class | WebRTCError |
| class | WebRTCMessage |
| class | WebRTCSession |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| dictionary | _RTSP_PREFIXES = {"rtsp://", "rtsps://", "rtmp://"} |
| string | _WEBRTC = "WebRTC" |
| RtspToWebRtcProviderType | |
| WebRTCSendMessage | |
| WsCommandWithCamera | |
Helper for WebRTC support.
|
private |
|
private |
|
private |
| CameraWebRTCLegacyProvider | None homeassistant.components.camera.webrtc.async_get_supported_legacy_provider | ( | HomeAssistant | hass, |
| Camera | camera | ||
| ) |
| CameraWebRTCProvider | None homeassistant.components.camera.webrtc.async_get_supported_provider | ( | HomeAssistant | hass, |
| Camera | camera | ||
| ) |
| Callable[[], None] homeassistant.components.camera.webrtc.async_register_ice_servers | ( | HomeAssistant | hass, |
| Callable[[], Iterable[RTCIceServer]] | get_ice_server_fn | ||
| ) |
| Callable[[], None] homeassistant.components.camera.webrtc.async_register_rtsp_to_web_rtc_provider | ( | HomeAssistant | hass, |
| str | domain, | ||
| RtspToWebRtcProviderType | provider | ||
| ) |
| Callable[[], None] homeassistant.components.camera.webrtc.async_register_webrtc_provider | ( | HomeAssistant | hass, |
| CameraWebRTCProvider | provider | ||
| ) |
| None homeassistant.components.camera.webrtc.async_register_ws | ( | HomeAssistant | hass | ) |
| Callable[[WsCommandWithCamera], websocket_api.AsyncWebSocketCommandHandler] homeassistant.components.camera.webrtc.require_webrtc_support | ( | str | error_code | ) |
| None homeassistant.components.camera.webrtc.ws_candidate | ( | websocket_api.ActiveConnection | connection, |
| dict[str, Any] | msg, | ||
| Camera | camera | ||
| ) |
| None homeassistant.components.camera.webrtc.ws_get_client_config | ( | websocket_api.ActiveConnection | connection, |
| dict[str, Any] | msg, | ||
| Camera | camera | ||
| ) |
| None homeassistant.components.camera.webrtc.ws_webrtc_offer | ( | websocket_api.ActiveConnection | connection, |
| dict[str, Any] | msg, | ||
| Camera | camera | ||
| ) |
Handle the signal path for a WebRTC stream. This signal path is used to route the offer created by the client to the camera device through the integration for negotiation on initial setup. The ws endpoint returns a subscription id, where ice candidates and the final answer will be returned. The actual streaming is handled entirely between the client and camera device. Async friendly.
|
private |
|
private |
|
private |
| homeassistant.components.camera.webrtc.RtspToWebRtcProviderType |