* initial commit of streams * refactor stream component * refactor so stream formats are not considered a platform * initial test and minor refactor * fix linting * update requirements * need av in tests as well * fix import in class def vs method * fix travis and docker builds * address code review comments * fix logger, add stream start/stop logs, listen to HASS stop * address additional code review comments * beef up tests * fix tests * fix lint * add stream_source to onvif camera * address pr comments * add keepalive to camera play_stream service * remove keepalive and move import * implement registry and have output provider remove itself from stream after idle, set libav log level to error
14 lines
263 B
Python
14 lines
263 B
Python
"""Constants for Stream component."""
|
|
DOMAIN = 'stream'
|
|
|
|
ATTR_ENDPOINTS = 'endpoints'
|
|
ATTR_STREAMS = 'streams'
|
|
ATTR_KEEPALIVE = 'keepalive'
|
|
|
|
OUTPUT_FORMATS = ['hls']
|
|
|
|
FORMAT_CONTENT_TYPE = {
|
|
'hls': 'application/vnd.apple.mpegurl'
|
|
}
|
|
|
|
AUDIO_SAMPLE_RATE = 44100
|