Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.stream.const Namespace Reference

Variables

string ATTR_ENDPOINTS = "endpoints"
 
string ATTR_SETTINGS = "settings"
 
string ATTR_STREAMS = "streams"
 
dictionary AUDIO_CODECS = {"aac", "mp3"}
 
string CONF_EXTRA_PART_WAIT_TIME = "extra_part_wait_time"
 
string CONF_LL_HLS = "ll_hls"
 
string CONF_PART_DURATION = "part_duration"
 
string CONF_PREFER_TCP = "prefer_tcp"
 
string CONF_RTSP_TRANSPORT = "rtsp_transport"
 
string CONF_SEGMENT_DURATION = "segment_duration"
 
string CONF_USE_WALLCLOCK_AS_TIMESTAMPS = "use_wallclock_as_timestamps"
 
string DOMAIN = "stream"
 
int EXT_X_START_LL_HLS = 2
 
float EXT_X_START_NON_LL_HLS = 1.5
 
 Final
 
dictionary FORMAT_CONTENT_TYPE = {HLS_PROVIDER: "application/vnd.apple.mpegurl"}
 
string HLS_PROVIDER = "hls"
 
int MAX_MISSING_DTS = 6
 
int MAX_SEGMENTS = 5
 
int MAX_TIMESTAMP_GAP = 30
 
int NUM_PLAYLIST_SEGMENTS = 3
 
list OUTPUT_FORMATS = [HLS_PROVIDER]
 
int OUTPUT_IDLE_TIMEOUT = 300
 
int PACKETS_TO_WAIT_FOR_AUDIO = 20
 
string RECORDER_PROVIDER = "recorder"
 
dictionary RTSP_TRANSPORTS
 
float SEGMENT_DURATION_ADJUSTER = 0.1
 
int SOURCE_TIMEOUT = 30
 
int STREAM_RESTART_INCREMENT = 10
 
int STREAM_RESTART_RESET_TIME = 300
 
float TARGET_SEGMENT_DURATION_NON_LL_HLS = 2.0
 

Detailed Description

Constants for Stream component.

Variable Documentation

◆ ATTR_ENDPOINTS

string homeassistant.components.stream.const.ATTR_ENDPOINTS = "endpoints"

Definition at line 9 of file const.py.

◆ ATTR_SETTINGS

string homeassistant.components.stream.const.ATTR_SETTINGS = "settings"

Definition at line 10 of file const.py.

◆ ATTR_STREAMS

string homeassistant.components.stream.const.ATTR_STREAMS = "streams"

Definition at line 11 of file const.py.

◆ AUDIO_CODECS

dictionary homeassistant.components.stream.const.AUDIO_CODECS = {"aac", "mp3"}

Definition at line 20 of file const.py.

◆ CONF_EXTRA_PART_WAIT_TIME

string homeassistant.components.stream.const.CONF_EXTRA_PART_WAIT_TIME = "extra_part_wait_time"

Definition at line 61 of file const.py.

◆ CONF_LL_HLS

string homeassistant.components.stream.const.CONF_LL_HLS = "ll_hls"

Definition at line 47 of file const.py.

◆ CONF_PART_DURATION

string homeassistant.components.stream.const.CONF_PART_DURATION = "part_duration"

Definition at line 48 of file const.py.

◆ CONF_PREFER_TCP

string homeassistant.components.stream.const.CONF_PREFER_TCP = "prefer_tcp"

Definition at line 51 of file const.py.

◆ CONF_RTSP_TRANSPORT

string homeassistant.components.stream.const.CONF_RTSP_TRANSPORT = "rtsp_transport"

Definition at line 52 of file const.py.

◆ CONF_SEGMENT_DURATION

string homeassistant.components.stream.const.CONF_SEGMENT_DURATION = "segment_duration"

Definition at line 49 of file const.py.

◆ CONF_USE_WALLCLOCK_AS_TIMESTAMPS

string homeassistant.components.stream.const.CONF_USE_WALLCLOCK_AS_TIMESTAMPS = "use_wallclock_as_timestamps"

Definition at line 60 of file const.py.

◆ DOMAIN

string homeassistant.components.stream.const.DOMAIN = "stream"

Definition at line 7 of file const.py.

◆ EXT_X_START_LL_HLS

int homeassistant.components.stream.const.EXT_X_START_LL_HLS = 2

Definition at line 35 of file const.py.

◆ EXT_X_START_NON_LL_HLS

float homeassistant.components.stream.const.EXT_X_START_NON_LL_HLS = 1.5

Definition at line 33 of file const.py.

◆ Final

homeassistant.components.stream.const.Final

Definition at line 18 of file const.py.

◆ FORMAT_CONTENT_TYPE

dictionary homeassistant.components.stream.const.FORMAT_CONTENT_TYPE = {HLS_PROVIDER: "application/vnd.apple.mpegurl"}

Definition at line 22 of file const.py.

◆ HLS_PROVIDER

string homeassistant.components.stream.const.HLS_PROVIDER = "hls"

Definition at line 13 of file const.py.

◆ MAX_MISSING_DTS

int homeassistant.components.stream.const.MAX_MISSING_DTS = 6

Definition at line 41 of file const.py.

◆ MAX_SEGMENTS

int homeassistant.components.stream.const.MAX_SEGMENTS = 5

Definition at line 27 of file const.py.

◆ MAX_TIMESTAMP_GAP

int homeassistant.components.stream.const.MAX_TIMESTAMP_GAP = 30

Definition at line 39 of file const.py.

◆ NUM_PLAYLIST_SEGMENTS

int homeassistant.components.stream.const.NUM_PLAYLIST_SEGMENTS = 3

Definition at line 26 of file const.py.

◆ OUTPUT_FORMATS

list homeassistant.components.stream.const.OUTPUT_FORMATS = [HLS_PROVIDER]

Definition at line 16 of file const.py.

◆ OUTPUT_IDLE_TIMEOUT

int homeassistant.components.stream.const.OUTPUT_IDLE_TIMEOUT = 300

Definition at line 24 of file const.py.

◆ PACKETS_TO_WAIT_FOR_AUDIO

int homeassistant.components.stream.const.PACKETS_TO_WAIT_FOR_AUDIO = 20

Definition at line 38 of file const.py.

◆ RECORDER_PROVIDER

string homeassistant.components.stream.const.RECORDER_PROVIDER = "recorder"

Definition at line 14 of file const.py.

◆ RTSP_TRANSPORTS

dictionary homeassistant.components.stream.const.RTSP_TRANSPORTS
Initial value:
1 = {
2  "tcp": "TCP",
3  "udp": "UDP",
4  "udp_multicast": "UDP Multicast",
5  "http": "HTTP",
6 }

Definition at line 54 of file const.py.

◆ SEGMENT_DURATION_ADJUSTER

float homeassistant.components.stream.const.SEGMENT_DURATION_ADJUSTER = 0.1

Definition at line 29 of file const.py.

◆ SOURCE_TIMEOUT

int homeassistant.components.stream.const.SOURCE_TIMEOUT = 30

Definition at line 42 of file const.py.

◆ STREAM_RESTART_INCREMENT

int homeassistant.components.stream.const.STREAM_RESTART_INCREMENT = 10

Definition at line 44 of file const.py.

◆ STREAM_RESTART_RESET_TIME

int homeassistant.components.stream.const.STREAM_RESTART_RESET_TIME = 300

Definition at line 45 of file const.py.

◆ TARGET_SEGMENT_DURATION_NON_LL_HLS

float homeassistant.components.stream.const.TARGET_SEGMENT_DURATION_NON_LL_HLS = 2.0

Definition at line 28 of file const.py.