feat #14740: play back calls

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-10 13:37:47 +01:00
co-authored by Claude Opus 5.5
parent 8d757fd639
commit a74cfa5864
16 changed files with 1335 additions and 12 deletions
+8
View File
@@ -11,6 +11,7 @@ use std::time::Duration;
use recorder_core::call_view::{CallDetail, CallListItem};
use recorder_core::capture::Devices;
use recorder_core::model::CallId;
use recorder_core::playback::PlaybackInfo;
use recorder_core::secrets::Service;
use recorder_core::settings::Settings;
use serde::Serialize;
@@ -208,6 +209,13 @@ pub fn rename_call(
Ok(())
}
/// Mixes the call's two tracks into one file to play in the detail view
/// (or reuses the cached mix); the UI plays it through the asset protocol.
#[tauri::command]
pub async fn prepare_playback(app: AppHandle, id: CallId) -> CmdResult<PlaybackInfo> {
blocking(app, move |app| app.state::<AppState>().prepare_playback(id)).await
}
/// Deletes a finished call's audio and row. Closes the prompt if no call
/// waits for it any more; otherwise the prompt reloads and shows the next.
/// While its DeepScript jobs are still on record, nothing is deleted and a