Skip to content

Commit

Permalink
Add logging for display info
Browse files Browse the repository at this point in the history
  • Loading branch information
richiemcilroy committed Mar 19, 2024
1 parent c91a3ba commit 6174d3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/desktop/src-tauri/src/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ impl MediaRecorder {
let (audio_tx, audio_rx) = tokio::sync::mpsc::channel::<Vec<u8>>(2048);
let (video_tx, video_rx) = tokio::sync::mpsc::channel::<Vec<u8>>(2048);

println!("Display width: {}", w);
println!("Display height: {}", h);
println!("Adjusted height: {}", adjusted_height);
println!("Capture size: {}", capture_size);

let audio_start_time = Arc::new(Mutex::new(None));
let video_start_time = Arc::new(Mutex::new(None));

Expand Down Expand Up @@ -294,6 +299,7 @@ impl MediaRecorder {
std::thread::spawn(move || {
let mut frame_data = Vec::with_capacity(capture_size);
let stride = w_cloned * 4;
println!("Stride: {}", stride);
let rt = tokio::runtime::Runtime::new().unwrap();

for row in 0..h {
Expand Down

1 comment on commit 6174d3d

@vercel
Copy link

@vercel vercel bot commented on 6174d3d Mar 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.