Skip to content

WHIP output code restructuring - #2150

Merged
JBRS307 merged 3 commits into
masterfrom
@jbrs/whip-restruct
Jul 27, 2026
Merged

WHIP output code restructuring#2150
JBRS307 merged 3 commits into
masterfrom
@jbrs/whip-restruct

Conversation

@JBRS307

@JBRS307 JBRS307 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@JBRS307 JBRS307 self-assigned this Jul 24, 2026
@JBRS307
JBRS307 marked this pull request as ready for review July 24, 2026 15:41
@JBRS307
JBRS307 requested a review from Copilot July 24, 2026 15:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the WHIP output implementation by splitting responsibilities across dedicated modules (notably extracting the WhipOutput/init logic and stats sender into a new output.rs), while keeping the media streaming and track tasks in their existing modules.

Changes:

  • Introduces whip_output/mod.rs and a new whip_output/output.rs to host WhipOutput, init/wait logic, WhipClientTrack, and WhipOutputStatsSender.
  • Updates internal imports/visibility (pub(super) + pub methods) so sibling modules can access the moved types/functions.
  • Minor cleanup/fixups, including a spelling correction in setup_track.rs and updated PeerConnection import path.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
smelter-core/src/pipeline/webrtc/whip_output/track_task_video.rs Updates WhipOutputStatsSender import path to new module location.
smelter-core/src/pipeline/webrtc/whip_output/track_task_audio.rs Updates WhipOutputStatsSender import path to new module location.
smelter-core/src/pipeline/webrtc/whip_output/stream_media_to_peer.rs Removes WhipOutput/stats/wait logic from this file; narrows imports and adjusts visibility for extracted components.
smelter-core/src/pipeline/webrtc/whip_output/setup_track.rs Updates imports for moved types/handles; fixes a typo in a comment.
smelter-core/src/pipeline/webrtc/whip_output/output.rs New module containing WhipOutput init, WhipClientTrack, stats sender, and deadline wait helper.
smelter-core/src/pipeline/webrtc/whip_output/mod.rs New module root wiring up submodules and re-exporting WhipOutput.
smelter-core/src/pipeline/webrtc/whip_output/establish_peer_connection.rs Updates PeerConnection import path to its module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +63 to +69
match result {
Ok((task, handle)) => {
init_confirmation_sender.send(Ok(handle)).unwrap();
task.run().await
}
Err(err) => init_confirmation_sender.send(Err(err)).unwrap(),
}
@JBRS307
JBRS307 requested a review from wkozyra95 July 24, 2026 15:45
@JBRS307
JBRS307 enabled auto-merge (squash) July 27, 2026 08:20
@JBRS307
JBRS307 merged commit ed1b864 into master Jul 27, 2026
7 of 8 checks passed
@JBRS307
JBRS307 deleted the @jbrs/whip-restruct branch July 27, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants