Premier exemple pour tester si le controle point marche

This commit is contained in:
2025-12-01 20:40:24 +01:00
parent f434c521e8
commit ea1774f216
10 changed files with 8607 additions and 68 deletions

View File

@@ -13,6 +13,10 @@ pub enum RendererProtocol {
#[derive(Clone, Debug, Default)]
pub struct RendererCapabilities {
pub has_avtransport: bool,
/// True if the renderer is known to support AVTransport.SetNextAVTransportURI.
///
/// This is discovered lazily at runtime; default is false.
pub has_avtransport_set_next: bool,
pub has_rendering_control: bool,
pub has_connection_manager: bool,
pub has_linkplay_http: bool,
@@ -25,6 +29,12 @@ pub struct RendererCapabilities {
pub has_oh_radio: bool,
}
impl RendererCapabilities {
pub fn supports_set_next(&self) -> bool {
self.has_avtransport && self.has_avtransport_set_next
}
}
#[derive(Clone, Debug)]
pub struct RendererInfo {
pub id: RendererId,