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

Migrate to pion/webrtc/v4 #592

Merged
merged 3 commits into from
Dec 10, 2024
Merged

Migrate to pion/webrtc/v4 #592

merged 3 commits into from
Dec 10, 2024

Conversation

3DRX
Copy link
Contributor

@3DRX 3DRX commented Nov 20, 2024

Description

Migrate to pion/webrtc/v4, code changes:

  • Change webrtc.RtpTransceiverInit to webrtc.RTPTransceiverInit.

Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.67%. Comparing base (5ac53a4) to head (4dec292).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #592   +/-   ##
=======================================
  Coverage   44.67%   44.67%           
=======================================
  Files          80       80           
  Lines        5498     5498           
=======================================
  Hits         2456     2456           
  Misses       2875     2875           
  Partials      167      167           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@3DRX
Copy link
Contributor Author

3DRX commented Dec 7, 2024

@Sean-Der @at-wat Please take time to review this, huge thanks.

@at-wat at-wat self-requested a review December 9, 2024 02:37
Copy link
Member

@at-wat at-wat left a comment

Choose a reason for hiding this comment

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

@3DRX thank you for your contribution!

I tried examples/webrtc on this branch and got:

Connection State has changed checking 
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Constrained Baseline, level 3.0, 4:2:0, 8-bit
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x7c973a]

goroutine 36 [running]:
github.com/pion/mediadevices.(*baseTrack).rtcpReadLoop(0x799320?, {0x0, 0x0}, {0x7f096db2a068, 0xc0002be3f0}, 0xc0002b51f0)
	/home/at-wat/go/src/github.com/pion/mediadevices/track.go:252 +0x7a
created by github.com/pion/mediadevices.(*baseTrack).bind in goroutine 1
	/home/at-wat/go/src/github.com/pion/mediadevices/track.go:235 +0x858
exit status 2

Does it work on you environment?

@3DRX
Copy link
Contributor Author

3DRX commented Dec 9, 2024

@at-wat thanks for review! I believe this is fixed by pion/webrtc@2553783, I'll update pion/webrtc to v4.0.5.

@3DRX
Copy link
Contributor Author

3DRX commented Dec 9, 2024

Yeah, this works for me.

@3DRX 3DRX requested a review from at-wat December 10, 2024 02:03
Copy link
Member

@at-wat at-wat left a comment

Choose a reason for hiding this comment

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

I confirmed the example works now!
Please run go mod tidy under examples directory as well.

examples/go.mod Outdated Show resolved Hide resolved
@3DRX 3DRX requested a review from at-wat December 10, 2024 04:55
Copy link
Member

@at-wat at-wat left a comment

Choose a reason for hiding this comment

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

LGTM!

@at-wat at-wat merged commit 4027590 into pion:master Dec 10, 2024
7 checks passed
@at-wat
Copy link
Member

at-wat commented Dec 10, 2024

Thank you for your contribution!

@3DRX 3DRX deleted the feat/migrate_to_v4 branch December 10, 2024 05:32
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.

2 participants