Rendi affidabile pausa con slate e conferma i controlli laterali.
Evita buchi HLS/YouTube in pausa (path slate ricreata, reload player, no patch recording inutili) e richiede conferma su tasti laterali app/regia. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -27,6 +27,8 @@ RSpec.describe Mediamtx::PublisherSync do
|
||||
allow(Mediamtx::PublisherOnline).to receive(:active?).and_return(true)
|
||||
allow_any_instance_of(described_class).to receive(:redis).and_return(redis)
|
||||
allow(client).to receive(:set_path_recording)
|
||||
allow(client).to receive(:ensure_path_with_slate!)
|
||||
allow(client).to receive(:set_always_available)
|
||||
end
|
||||
|
||||
it "abilita la registrazione quando il publisher è online e la sessione è live" do
|
||||
|
||||
@@ -43,7 +43,7 @@ RSpec.describe Streams::SlateDistributor do
|
||||
|
||||
it "usa path custom su nodo home quando la slate è su disco" do
|
||||
attach_ready_cover(club)
|
||||
custom = "/slates/custom/#{File.basename(Streams::CoverSlatePaths.expected_path(club))}"
|
||||
custom = Streams::CoverSlatePaths.expected_path(club)
|
||||
expect(described_class.slate_path_for_session(session)).to eq(custom)
|
||||
end
|
||||
|
||||
@@ -72,9 +72,8 @@ RSpec.describe Streams::SlateDistributor do
|
||||
allow(http).to receive(:read_timeout=)
|
||||
allow(http).to receive(:request).and_return(response)
|
||||
|
||||
filename = File.basename(Streams::CoverSlatePaths.expected_path(club))
|
||||
path = described_class.slate_path_for_session(session)
|
||||
expect(path).to eq("/slates/custom/#{filename}")
|
||||
expect(path).to eq(Streams::CoverSlatePaths.expected_path(club))
|
||||
expect(http).to have_received(:request)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user