Public Member Functions | |
| None | __init__ (self, HomeAssistant hass, IdleTimer idle_timer, StreamSettings stream_settings, DynamicStreamSettings dynamic_stream_settings) |
| None | cleanup (self) |
| None | discontinuity (self) |
| str | name (self) |
| float | target_duration (self) |
Public Member Functions inherited from homeassistant.components.stream.core.StreamOutput | |
| None | __init__ (self, HomeAssistant hass, IdleTimer idle_timer, StreamSettings stream_settings, DynamicStreamSettings dynamic_stream_settings, int|None deque_maxlen=None) |
| Segment|None | get_segment (self, int sequence) |
| deque[Segment] | get_segments (self) |
| bool | idle (self) |
| Segment|None | last_segment (self) |
| int | last_sequence (self) |
| None | part_put (self) |
| bool | part_recv (self, float|None timeout=None) |
| None | put (self, Segment segment) |
| bool | recv (self) |
| list[int] | sequences (self) |
Private Member Functions | |
| None | _async_discontinuity (self) |
| None | _async_put (self, Segment segment) |
Private Attributes | |
| _target_duration | |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.components.stream.core.StreamOutput | |
| dynamic_stream_settings | |
| idle_timer | |
| stream_settings | |
| None homeassistant.components.stream.hls.HlsStreamOutput.__init__ | ( | self, | |
| HomeAssistant | hass, | ||
| IdleTimer | idle_timer, | ||
| StreamSettings | stream_settings, | ||
| DynamicStreamSettings | dynamic_stream_settings | ||
| ) |
|
private |
|
private |
Async put and also update the target duration. The target duration is calculated as the max duration of any given segment. Technically it should not change per the hls spec, but some cameras adjust their GOPs periodically so we need to account for this change.
Reimplemented from homeassistant.components.stream.core.StreamOutput.
| None homeassistant.components.stream.hls.HlsStreamOutput.cleanup | ( | self | ) |
Handle cleanup.
Reimplemented from homeassistant.components.stream.core.StreamOutput.
| None homeassistant.components.stream.hls.HlsStreamOutput.discontinuity | ( | self | ) |
| str homeassistant.components.stream.hls.HlsStreamOutput.name | ( | self | ) |
Return provider name.
Reimplemented from homeassistant.components.stream.core.StreamOutput.
| float homeassistant.components.stream.hls.HlsStreamOutput.target_duration | ( | self | ) |
|
private |