Corregge avvio RTMP bloccato dopo errore o cambio sessione.
Il motore Android ignorava startStream in CONNECTING/RECONNECTING; la camera ora resetta prima di pubblicare. YouTube relay parte solo con overlay attivo. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -57,6 +57,7 @@ module Streams
|
||||
return unless session.platform == "youtube"
|
||||
return if session.terminal?
|
||||
return if session.stream_key.blank?
|
||||
return unless Streams::OverlayRelay.running?(session.id)
|
||||
|
||||
return if running?(session.id)
|
||||
|
||||
|
||||
@@ -33,7 +33,10 @@ module Youtube
|
||||
rtmp_url: broadcast[:rtmp_url]
|
||||
)
|
||||
|
||||
Streams::YoutubeRelay.start(@session)
|
||||
# Relay solo quando _air pubblica (overlay pronto); altrimenti ffmpeg esce subito.
|
||||
if Streams::OverlayRelay.running?(@session.id)
|
||||
Streams::YoutubeRelay.start(@session)
|
||||
end
|
||||
@session.stream_events.create!(
|
||||
event_type: "youtube_ready",
|
||||
metadata: { broadcast_id: broadcast[:broadcast_id] },
|
||||
|
||||
Reference in New Issue
Block a user