mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-18 04:18:50 +00:00
Implement idle mode with placeholder content when stream disconnects (#3)
Some checks failed
continuous-integration/drone Build is failing
Some checks failed
continuous-integration/drone Build is failing
* Initial plan for issue * Implement placeholder frame generation and idle mode logic Co-authored-by: v0l <1172179+v0l@users.noreply.github.com> * Add frame rate throttling for idle mode processing Co-authored-by: v0l <1172179+v0l@users.noreply.github.com> * Refactor placeholder generation into separate module and simplify idle mode approach Co-authored-by: v0l <1172179+v0l@users.noreply.github.com> * Address PR review feedback: improve parameter naming, fix memory leaks, refactor state management, and fix frame generation approach Co-authored-by: v0l <1172179+v0l@users.noreply.github.com> * Store demuxer info in PipelineConfig for placeholder generation Co-authored-by: v0l <1172179+v0l@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: v0l <1172179+v0l@users.noreply.github.com>
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
use std::fmt::{Display, Formatter};
|
||||
|
||||
use crate::egress::EgressConfig;
|
||||
use crate::overseer::IngressInfo;
|
||||
use crate::variant::VariantStream;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use uuid::Uuid;
|
||||
|
||||
pub mod runner;
|
||||
pub mod placeholder;
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub enum EgressType {
|
||||
@ -46,6 +48,8 @@ pub struct PipelineConfig {
|
||||
pub variants: Vec<VariantStream>,
|
||||
/// Output muxers
|
||||
pub egress: Vec<EgressType>,
|
||||
/// Source stream information for placeholder generation
|
||||
pub ingress_info: Option<IngressInfo>,
|
||||
}
|
||||
|
||||
impl Display for PipelineConfig {
|
||||
|
Reference in New Issue
Block a user