[feat](trx-rs): add client-side Opus audio recorder
Record Opus audio streams to OGG files on the client. Includes manual start/stop via HTTP API, scheduler-driven auto-recording per schedule entry, and a header REC button in the web UI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -589,6 +589,12 @@ async fn process_command(
|
||||
let _ = ctx.state_tx.send(ctx.state.clone());
|
||||
return snapshot_from(ctx.state);
|
||||
}
|
||||
RigCommand::SetRecorderEnabled(en) => {
|
||||
ctx.state.decoders.recorder_enabled = en;
|
||||
info!("Recorder {}", if en { "enabled" } else { "disabled" });
|
||||
let _ = ctx.state_tx.send(ctx.state.clone());
|
||||
return snapshot_from(ctx.state);
|
||||
}
|
||||
RigCommand::ResetLrptDecoder => {
|
||||
ctx.histories.clear_lrpt_history();
|
||||
ctx.state.reset_seqs.lrpt_decode_reset_seq += 1;
|
||||
|
||||
Reference in New Issue
Block a user