mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
Set ttl to 60 seconds
This commit is contained in:
parent
07cc8c644b
commit
e22e06aa61
1 changed files with 4 additions and 3 deletions
|
|
@ -5,6 +5,8 @@ class BaseConfig:
|
|||
CHUNK_SIZE = 8192
|
||||
CLIENT_POLL_INTERVAL = 0.1
|
||||
MAX_RETRIES = 3
|
||||
# Redis settings
|
||||
REDIS_CHUNK_TTL = 60 # Number in seconds - Chunks expire after 1 minute
|
||||
|
||||
class HLSConfig(BaseConfig):
|
||||
MIN_SEGMENTS = 12
|
||||
|
|
@ -33,9 +35,8 @@ class TSConfig(BaseConfig):
|
|||
|
||||
# Streaming settings
|
||||
TARGET_BITRATE = 8000000 # Target bitrate (8 Mbps)
|
||||
STREAM_TIMEOUT = 30 # Disconnect after this many seconds of no data
|
||||
STREAM_TIMEOUT = 10 # Disconnect after this many seconds of no data
|
||||
HEALTH_CHECK_INTERVAL = 5 # Check stream health every N seconds
|
||||
|
||||
# Redis settings
|
||||
REDIS_CHUNK_TTL = 3600 # Chunks expire after 1 hour in Redis (renamed from REDIS_CHUNK_EXPIRY)
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue