feat(cast): add multi-protocol support for Chromecast, DLNA, and AirPlay
- Update CastPicker to show protocol tabs with device counts - Register DLNA and AirPlay state and commands in lib.rs - Add Deserialize derive to DlnaMetadata and AirPlayMetadata - Fix capabilities file (remove unavailable fs permissions) - Remove unused IpAddr import in media_server.rs
This commit is contained in:
1 parent
762df3e122
commit
fbfa067b94
7 files changed
+199
-39
No files matched your search
@@ -1,11 +1,11 @@
|
||||
//! AirPlay device connection and streaming (placeholder)
|
||||
|
||||
use serde::Serialize;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::cast::airplay::{AirPlayError, DiscoveredAirPlayDevice};
|
||||
|
||||
/// Metadata for AirPlay playback
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct AirPlayMetadata {
|
||||
pub title: String,
|
||||
pub artist: String,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
//! DLNA device connection and playback (placeholder)
|
||||
|
||||
use serde::Serialize;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::cast::dlna::{DiscoveredDlnaDevice, DlnaError};
|
||||
|
||||
/// Metadata for DLNA playback
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct DlnaMetadata {
|
||||
pub title: String,
|
||||
pub artist: String,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
use std::collections::HashMap;
|
||||
use std::fs::File;
|
||||
use std::io::{Read, Seek, SeekFrom};
|
||||
use std::net::{IpAddr, SocketAddr, UdpSocket};
|
||||
use std::net::{SocketAddr, UdpSocket};
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
Reference in new issue
Block a user