Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pion/webrtc/v4 #370

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Use pion/webrtc/v4 #370

wants to merge 6 commits into from

Conversation

edaniels
Copy link
Member

@edaniels edaniels commented Oct 9, 2024

I'd suggest moving to v4 since v3 is no longer supported.

@viambot viambot added the safe to test Mark as safe to test label Oct 9, 2024
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 9, 2024
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 9, 2024
@edaniels
Copy link
Member Author

edaniels commented Oct 9, 2024

Test failure unrelated

@dgottlieb
Copy link
Member

All of the changes you made in the v3 branch for us are in the v4 branch? Particularly the ones that weren't included in the old v3 branch because they were deemed backwards breaking?

I think the main one being the rtp passthrough related change where OnTrackReceived will be called once the SDP is renegotiated (as opposed to also requiring the first packet to be sent).

@edaniels
Copy link
Member Author

All of the changes you made in the v3 branch for us are in the v4 branch? Particularly the ones that weren't included in the old v3 branch because they were deemed backwards breaking?

I think the main one being the rtp passthrough related change where OnTrackReceived will be called once the SDP is renegotiated (as opposed to also requiring the first packet to be sent).

Yeah that RTP one would still need to be addressed here. Everything else in the fork is present in v4.

@edaniels
Copy link
Member Author

All of the changes you made in the v3 branch for us are in the v4 branch? Particularly the ones that weren't included in the old v3 branch because they were deemed backwards breaking?
I think the main one being the rtp passthrough related change where OnTrackReceived will be called once the SDP is renegotiated (as opposed to also requiring the first packet to be sent).

Yeah that RTP one would still need to be addressed here. Everything else in the fork is present in v4.

I'm offering up pion/webrtc#2933 to see if we can get it in without simulcast changes (that viam doesn't use).

@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 15, 2024
@edaniels edaniels marked this pull request as ready for review October 15, 2024 16:14
@edaniels
Copy link
Member Author

@dgottlieb I got the OnTrack bit in as a setting

@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 15, 2024
@viambot viambot added safe to test Mark as safe to test and removed safe to test Mark as safe to test labels Oct 15, 2024
}

func (ch *webrtcBaseChannel) onChannelError(err error) {
if errors.Is(err, sctp.ErrResetPacketInStateNotExist) ||
isUserInitiatedAbortChunkErr(err) {
ch.onChannelClose()
Copy link
Member Author

Choose a reason for hiding this comment

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

@dgottlieb this plus a few lines above ends up fixing a case where some tests don't see the channel close with an error "in time"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Mark as safe to test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants