mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-16 08:59:35 +00:00
fix: add default stream info to stream
This commit is contained in:
@ -201,7 +201,9 @@ impl RtmpClient {
|
||||
self.published_stream = Some(RtmpPublishedStream(app_name, stream_key));
|
||||
}
|
||||
}
|
||||
ServerSessionEvent::PublishStreamFinished { .. } => {}
|
||||
ServerSessionEvent::PublishStreamFinished { .. } => {
|
||||
// TODO: shutdown pipeline
|
||||
}
|
||||
ServerSessionEvent::StreamMetadataChanged {
|
||||
app_name,
|
||||
stream_key,
|
||||
|
@ -32,7 +32,7 @@ use tokio::runtime::Handle;
|
||||
use uuid::Uuid;
|
||||
|
||||
/// Idle mode timeout in seconds
|
||||
const IDLE_TIMEOUT_SECS: u64 = 600;
|
||||
const IDLE_TIMEOUT_SECS: u64 = 60;
|
||||
|
||||
/// Circuit breaker threshold for consecutive decode failures
|
||||
const DEFAULT_MAX_CONSECUTIVE_FAILURES: u32 = 50;
|
||||
|
@ -371,6 +371,12 @@ impl Overseer for ZapStreamOverseer {
|
||||
starts: Utc::now(),
|
||||
state: UserStreamState::Live,
|
||||
endpoint_id: Some(endpoint.id),
|
||||
title: user.title.clone(),
|
||||
summary: user.summary.clone(),
|
||||
thumb: user.image.clone(),
|
||||
content_warning: user.content_warning.clone(),
|
||||
goal: user.goal.clone(),
|
||||
tags: user.tags.clone(),
|
||||
..Default::default()
|
||||
};
|
||||
let stream_event = self.publish_stream_event(&new_stream, &user.pubkey).await?;
|
||||
|
Reference in New Issue
Block a user