Skip to content

Commit

Permalink
Expose recording pause & resume
Browse files Browse the repository at this point in the history
  • Loading branch information
mtratsiuk committed Oct 6, 2024
1 parent da928d5 commit 74b22d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ pub enum Recording {
Stop,
Toggle,
Status,
Pause,
Resume,
TogglePause,
}

Expand Down
10 changes: 10 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Bytes: {:?}", status.bytes);
}
}
Pause => {
let res = client.recording().pause().await;
println!("Recording paused");
println!("Result: {:?}", res);
}
Resume => {
let res = client.recording().resume().await;
println!("Recording resumed");
println!("Result: {:?}", res);
}
TogglePause => {
let res = client.recording().toggle_pause().await;
println!("Recording pause toggled");
Expand Down

0 comments on commit 74b22d5

Please sign in to comment.