AirPlay was scaffolded in both crates/qbz-cast/src/airplay and src-tauri/src/cast/airplay but never worked at runtime: the RAOP sender required an Apple MFi-licensed stack with no free/open alternative, and the backend state was already disabled via the commented `.manage(airplay_state)` line in src-tauri/src/lib.rs. The CastPicker UI already hid the AirPlay tab pending streaming support that was never going to ship. Delete: - crates/qbz-cast/src/airplay/ (entire directory) - src-tauri/src/cast/airplay/ (entire directory) - 10x v2_airplay_* commands from commands_v2/library.rs + their tauri::generate_handler entries - AirPlayError from qbz-cast errors - 'airplay' from CastProtocol + every case arm in castStore.ts, CastPicker.svelte, AudioOutputBadges.svelte - Corresponding i18n keys if present Zero behavior change for Chromecast / DLNA / QConnect / MPRIS. If AirPlay ever becomes feasible we'll revisit from scratch with a real streaming backend. cc
40 lines
1.2 KiB
Rust
40 lines
1.2 KiB
Rust
//! qbz-cast - Casting support for QBZ
|
|
//!
|
|
//! Provides casting capabilities for Chromecast and DLNA devices.
|
|
//! This crate is Tauri-agnostic and can be used by any Rust application.
|
|
//!
|
|
//! # Architecture
|
|
//!
|
|
//! - **Chromecast**: Full implementation using rust-cast. Uses a dedicated thread
|
|
//! for connection management due to rust-cast's use of Rc (not thread-safe).
|
|
//!
|
|
//! - **DLNA/UPnP**: Full implementation using rupnp for AVTransport/RenderingControl.
|
|
//!
|
|
//! - **MediaServer**: Local HTTP server for streaming audio to cast devices.
|
|
//! Supports byte-range requests for seeking.
|
|
|
|
pub mod chromecast;
|
|
pub mod dlna;
|
|
pub mod errors;
|
|
pub mod media_server;
|
|
|
|
// Re-export error types at root
|
|
pub use errors::{CastError, DlnaError};
|
|
|
|
// Re-export media server
|
|
pub use media_server::MediaServer;
|
|
|
|
// Re-export Chromecast types
|
|
pub use chromecast::{
|
|
CastApplication, CastCommand, CastDeviceConnection, CastPositionInfo, CastStatus,
|
|
ChromecastHandle, DeviceDiscovery, DiscoveredDevice, MediaMetadata,
|
|
};
|
|
|
|
// Re-export DLNA types
|
|
pub use dlna::{
|
|
DiscoveredDlnaDevice, DlnaConnection, DlnaDiscovery, DlnaMetadata, DlnaPositionInfo, DlnaStatus,
|
|
};
|
|
|
|
/// Cast device type alias for backwards compatibility
|
|
pub type CastDevice = CastDeviceConnection;
|