fix: tag recording in ended stream event

This commit is contained in:
2025-06-20 10:46:26 +01:00
parent b1ebf75244
commit e6bddcf641
3 changed files with 78 additions and 48 deletions

View File

@ -18,11 +18,13 @@ pub struct RecorderEgress {
}
impl RecorderEgress {
pub const FILENAME: &'static str = "recording.mp4";
pub fn new<'a>(
out_dir: PathBuf,
variants: impl Iterator<Item = (&'a VariantStream, &'a Encoder)>,
) -> Result<Self> {
let out_file = out_dir.join("recording.mp4");
let out_file = out_dir.join(Self::FILENAME);
let mut var_map = HashMap::new();
let muxer = unsafe {
let mut m = Muxer::builder()