mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-11-01 02:10:50 +08:00
refactor: 清理未使用代码并整合运行时配置逻辑
This commit is contained in:
@@ -263,10 +263,6 @@ impl Streamer {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_next_retry_ms(&self, ms: u64) {
|
||||
self.next_retry_ms.store(ms, Ordering::Relaxed);
|
||||
}
|
||||
|
||||
/// Set event bus for broadcasting state changes
|
||||
pub async fn set_event_bus(&self, events: Arc<EventBus>) {
|
||||
*self.events.write().await = Some(events);
|
||||
@@ -294,12 +290,6 @@ impl Streamer {
|
||||
self.current_device.read().await.clone()
|
||||
}
|
||||
|
||||
/// Get current video configuration (format, resolution, fps)
|
||||
pub async fn current_video_config(&self) -> (PixelFormat, Resolution, u32) {
|
||||
let config = self.config.read().await;
|
||||
(config.format, config.resolution, config.fps)
|
||||
}
|
||||
|
||||
/// Get current capture configuration for direct pipelines
|
||||
pub async fn current_capture_config(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user