Skip to main content

sonos_api/services/group_rendering_control/
mod.rs

1//! GroupRenderingControl service for group-wide audio rendering operations
2//!
3//! This service handles group-wide audio rendering operations (group volume, group mute)
4//! for Sonos speaker groups. Operations should only be sent to the group coordinator.
5//!
6//! # Control Operations
7//! ```rust,ignore
8//! use sonos_api::services::group_rendering_control;
9//!
10//! let vol_op = group_rendering_control::set_group_volume(75).build()?;
11//! client.execute("192.168.1.100", vol_op)?;
12//! ```
13//!
14//! # Event Subscriptions
15//! ```rust,ignore
16//! let subscription = group_rendering_control::subscribe(&client, "192.168.1.100", "http://callback")?;
17//! ```
18//!
19//! # Important Notes
20//! - Operations should only be sent to the group coordinator
21//! - Sending to non-coordinator speakers will result in error code 701
22
23pub mod events;
24pub mod operations;
25pub mod state;
26
27// Re-export for convenience
28pub use events::*;
29pub use operations::*;
30pub use state::GroupRenderingControlState;