Skip to content

Commit

Permalink
Merge branch 'algesten:main' into efer/fix_ecdsa
Browse files Browse the repository at this point in the history
  • Loading branch information
efer-ms authored Jan 21, 2025
2 parents 3c041ac + 25d51d5 commit 8538064
Show file tree
Hide file tree
Showing 28 changed files with 893 additions and 386 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* Ensure lexical ordering of SDP-formatted candidates follows priority #557
* Limit TWCC iteration with packet status count #606
* Dedupe acked packets from `TwccSendRegister::apply_report()` #601, #605
* Align BWE ArrivalGroup calculation with libwebrtc implementation #608

# 0.6.2

Expand Down
9 changes: 7 additions & 2 deletions examples/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,13 @@ impl Client {
if let TrackOutState::ToOpen = track.state {
if let Some(track_in) = track.track_in.upgrade() {
let stream_id = track_in.origin.to_string();
let mid =
change.add_media(track_in.kind, Direction::SendOnly, Some(stream_id), None);
let mid = change.add_media(
track_in.kind,
Direction::SendOnly,
Some(stream_id),
None,
None,
);
track.state = TrackOutState::Negotiating(mid);
}
}
Expand Down
7 changes: 6 additions & 1 deletion src/change/direct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,19 @@ impl<'a> DirectApi<'a> {
mid: Mid,
rid: Option<Rid>,
) -> &mut StreamTx {
let Some(media) = self.rtc.session.media_by_mid(mid) else {
let Some(media) = self.rtc.session.media_by_mid_mut(mid) else {
panic!("No media declared for mid: {}", mid);
};

let is_audio = media.kind().is_audio();

let midrid = MidRid(mid, rid);

// If there is a RID tx, declare it so we an use it in Writer API
if let Some(rid) = rid {
media.add_to_rid_tx(rid);
}

let stream = self
.rtc
.session
Expand Down
Loading

0 comments on commit 8538064

Please sign in to comment.