Riduce reload MediaMTX in live e allinea ingest mobile al preset qualità.

Evita patch recording ripetute che distruggevano i muxer HLS (500 ops) e fa encoderare 1080p/720p con codec e bitrate coerenti al wizard.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-21 22:17:18 +02:00
co-authored by Cursor
parent e20c2ae619
commit 7d5d66840f
15 changed files with 195 additions and 40 deletions
@@ -505,13 +505,9 @@ struct BroadcastScreen: View {
}
private func broadcastConfig(for loaded: StreamSession, rtmpUrl: String) -> BroadcastConfig {
BroadcastConfig(
rtmpUrl: RtmpIngestUrl.resolveForDevice(rtmpUrl),
width: 1280,
height: 720,
videoBitrate: loaded.targetBitrate,
audioBitrate: 128_000,
fps: loaded.targetFps
StreamVideoPreset.broadcastConfig(
for: loaded,
rtmpUrl: RtmpIngestUrl.resolveForDevice(rtmpUrl)
)
}