feat #14740: play back calls
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user