Initial implementation of Wayland AirPlay desktop sharing

This commit is contained in:
Niklas Haiden
2026-09-09 22:04:30 +02:00
commit 7cda80d840
18 changed files with 11044 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
use airplay_discovery::{Discovery, ServiceBrowser};
use std::time::Duration;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let browser = ServiceBrowser::new()?;
let devices = browser.scan(Duration::from_secs(6)).await?;
println!("Found {} AirPlay receivers", devices.len());
for device in devices {
println!(
"{} | {} | {:?} | {}",
device.name,
device.model,
device.socket_addr(),
device.id.to_mac_string()
);
}
Ok(())
}