Stabilizza live YouTube/RTMP e fix crash rotazione mobile.

Pipeline YouTube con relay, overlay e publisher sync lato backend; fix GL pauseGlDuringRotation su Android per evitare crash in rotazione durante lo streaming Flutter.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-06 15:30:55 +02:00
parent 1058c644bd
commit 854738b46d
65 changed files with 2606 additions and 579 deletions

View File

@@ -12,7 +12,9 @@ Rails.application.configure do
config.force_ssl = true
config.ssl_options = {
redirect: {
exclude: ->(request) { request.path == "/up" || request.path == "/cable" }
exclude: ->(request) {
request.path == "/up" || request.path == "/cable" || request.path.start_with?("/hls/")
}
}
}
@@ -31,7 +33,9 @@ Rails.application.configure do
config.hosts = allowed_hosts if allowed_hosts.any?
config.host_authorization = {
exclude: ->(request) { request.path == "/up" || request.path.start_with?("/cable") }
exclude: ->(request) {
request.path == "/up" || request.path.start_with?("/cable") || request.path.start_with?("/hls/")
}
}
config.logger = ActiveSupport::Logger.new(STDOUT)

View File

@@ -2,6 +2,10 @@ require "sidekiq/api"
Sidekiq.configure_server do |config|
config.redis = { url: ENV.fetch("REDIS_URL", "redis://localhost:6379/0") }
config.on(:startup) do
StreamPublisherSyncJob.ensure_chain
end
end
Sidekiq.configure_client do |config|