syphon-core 0.1.0

Core Objective-C bindings for Syphon on macOS
docs.rs failed to build syphon-core-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

Syphon Core

Core Objective-C bindings for the Syphon framework on macOS.

Overview

Syphon is a macOS technology for sharing video frames between applications with zero-copy GPU efficiency. This crate provides safe Rust bindings to the Syphon Objective-C framework.

Usage

use syphon_core::{SyphonServer, SyphonClient, SyphonServerDirectory};

// Create a server to publish frames
let server = SyphonServer::new("My App", 1920, 1080)?;
server.publish_iosurface(&my_surface)?;

// List available servers
let servers = SyphonServerDirectory::servers();
for server in servers {
    println!("Found: {} ({})", server.name, server.app_name);
}

// Connect to a server
let client = SyphonClient::connect("Resolume Arena")?;
if let Some(frame) = client.try_receive()? {
    // Use frame...
}