@@ -57,7 +57,7 @@ struct Handler;
5757
5858impl SCStreamOutputTrait for Handler {
5959 fn did_output_sample_buffer (& self , sample : CMSampleBuffer , _type : SCStreamOutputType ) {
60- println! (" 📹 Received frame at {} pts " , sample . get_presentation_timestamp ());
60+ println! (" 📹 Received frame at {:?} " , sample . presentation_timestamp ());
6161 }
6262}
6363
@@ -284,14 +284,13 @@ Zero-copy GPU texture access:
284284``` rust
285285impl SCStreamOutputTrait for Handler {
286286 fn did_output_sample_buffer (& self , sample : CMSampleBuffer , _type : SCStreamOutputType ) {
287- if let Some (pixel_buffer ) = sample . get_image_buffer () {
288- if let Some (surface ) = pixel_buffer . get_iosurface () {
289- let width = surface . get_width ();
290- let height = surface . get_height ();
291- let pixel_format = surface . get_pixel_format ();
287+ if let Some (pixel_buffer ) = sample . image_buffer () {
288+ if let Some (surface ) = pixel_buffer . io_surface () {
289+ let width = surface . width ();
290+ let height = surface . height ();
292291
293292 // Use with Metal/OpenGL...
294- println! (" IOSurface: {}x{} format: {} " , width , height , pixel_format );
293+ println! (" IOSurface: {}x{}" , width , height );
295294 }
296295 }
297296 }
@@ -475,6 +474,7 @@ screencapturekit/
475474- ** macOS 13.0+** (Ventura) - Additional features with ` macos_13_0 `
476475- ** macOS 14.0+** (Sonoma) - Content picker, advanced config
477476- ** macOS 15.0+** (Sequoia) - Recording output, HDR capture
477+ - ** macOS 26.0+** (Tahoe) - Advanced screenshot config, HDR screenshot output
478478
479479## 🤝 Contributing
480480
0 commit comments