seamless mid-stream video parameter changes

For #217. This handles the recording logic. May still need fixes to
playback and/or live stream logic.
This commit is contained in:
Scott Lamb
2022-04-13 14:37:45 -07:00
parent 71d3f2a946
commit 3bc552b950
7 changed files with 174 additions and 101 deletions

View File

@@ -211,7 +211,7 @@ fn press_test_inner(
transport: retina::client::Transport,
) -> Result<String, Error> {
let _enter = handle.enter();
let (extra_data, stream) = stream::OPENER.open(
let stream = stream::OPENER.open(
"test stream".to_owned(),
url,
retina::client::SessionOptions::default()
@@ -222,10 +222,17 @@ fn press_test_inner(
})
.transport(transport),
)?;
let video_sample_entry = stream.video_sample_entry();
Ok(format!(
"{}x{} video stream served by tool {:?}",
extra_data.width,
extra_data.height,
"codec: {}\n\
dimensions: {}x{}\n\
pixel aspect ratio: {}x{}\n\
tool: {:?}",
&video_sample_entry.rfc6381_codec,
video_sample_entry.width,
video_sample_entry.height,
video_sample_entry.pasp_h_spacing,
video_sample_entry.pasp_v_spacing,
stream.tool(),
))
}