Skip to content

Conversation

@yeoleobun
Copy link
Collaborator

After mid setted at here, newly_matched defined at:

let mut newly_matched = false;
for t in transceivers.iter() {
if let Some(t_mid) = t.mid()
&& t_mid == *mid
{
found_transceiver = Some(t.clone());
break;
}
}
if found_transceiver.is_none() {
// Try to find a transceiver with no MID and same kind
for t in transceivers.iter() {
if t.mid().is_none() && t.kind() == section.kind {
t.set_mid(mid.clone());
found_transceiver = Some(t.clone());
newly_matched = true;
break;
}
}
}

cannot be set to true. then the PeerConnectionEvent::Track will not generated for webrtc offer

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.

1 participant