Aggiunge overlay server-side burn-in e stabilizza diretta live.
Tabellone, badge e brand sono ricodificati nel flusso _air via OverlayRelay; sync punteggio HTTP, volume condiviso rails/sidekiq, qualità 720p migliorata e badge CONNECTING in ripresa da pausa. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -73,11 +73,17 @@ class SessionNotifier extends StateNotifier<SessionState> {
|
||||
}
|
||||
if (device.status != null && state.session != null) {
|
||||
final s = state.session!;
|
||||
final incoming = device.status!;
|
||||
// Non sovrascrivere una pausa intenzionale con stati transitori (live/connecting).
|
||||
if (s.status == 'paused' && incoming != 'paused' && incoming != 'ended') {
|
||||
state = state.copyWith(cameraDevice: device);
|
||||
return;
|
||||
}
|
||||
state = state.copyWith(
|
||||
session: StreamSession(
|
||||
id: s.id,
|
||||
matchId: s.matchId,
|
||||
status: device.status!,
|
||||
status: incoming,
|
||||
platform: s.platform,
|
||||
rtmpIngestUrl: s.rtmpIngestUrl,
|
||||
hlsPlaybackUrl: s.hlsPlaybackUrl,
|
||||
|
||||
Reference in New Issue
Block a user