voelin-stream: simulcast layer types and the layer seam between capture and streams
LayerSpec describes one encoding (size or scale, fps cap, bitrate range, minimum estimate, RID); LayerSet is a growable set of layers. Encoded frames carry their layer, FrameSource and MediaSink gain per-layer keyframe requests and bitrate targets, and StreamerOptions and StreamerConfig take the layer list. Behaviour is unchanged: one layer, 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
1 parent
b49ce78b15
commit
8b826da63d
9 files changed
+262
-10
No files matched your search
@@ -204,11 +204,12 @@ impl StreamTask {
|
||||
async fn input(&mut self, input: StreamInput) {
|
||||
let session = self.session;
|
||||
let result = match input {
|
||||
StreamInput::Start { setup, auto_accept } => {
|
||||
self.streams.start(StreamerOptions { setup, auto_accept }).map(|()| {
|
||||
StreamInput::Start { setup, auto_accept } => self
|
||||
.streams
|
||||
.start(StreamerOptions { setup, auto_accept, ..Default::default() })
|
||||
.map(|()| {
|
||||
self.emit(Event::StreamState { session, state: StreamState::Starting });
|
||||
})
|
||||
}
|
||||
}),
|
||||
StreamInput::Stop => self.streams.stop(),
|
||||
StreamInput::Respond { viewer, accept } => {
|
||||
self.streams.respond(ClientId(viewer), accept).await
|
||||
|
||||
Reference in new issue
Block a user