21 lines
600 B
Python
21 lines
600 B
Python
from pathlib import Path
|
|
|
|
APP_ID = "com.cht.StreamAgent"
|
|
APP_NAME = "CHT"
|
|
|
|
# Default session data location — in project dir for easy clearing
|
|
PROJECT_DIR = Path(__file__).resolve().parent.parent
|
|
DATA_DIR = PROJECT_DIR / "data"
|
|
SESSIONS_DIR = DATA_DIR / "sessions"
|
|
|
|
# Stream defaults
|
|
STREAM_HOST = "0.0.0.0"
|
|
STREAM_PORT = 4444
|
|
RELAY_PORT = 4445 # UDP loopback relay for live display
|
|
|
|
# Frame extraction — scene-only, no interval fallback
|
|
SCENE_THRESHOLD = 0.10 # 0-1, lower = more sensitive; 0.1 catches slide/window changes
|
|
|
|
# Segment recording
|
|
SEGMENT_DURATION = 60 # seconds per .ts segment
|