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

Add RTPTransceiver func #2527

Merged
merged 1 commit into from
Aug 2, 2023
Merged

Add RTPTransceiver func #2527

merged 1 commit into from
Aug 2, 2023

Conversation

do-hyung-kim
Copy link
Contributor

Hi there! I want to use RTPTransceiver in on track func. RTP TRANSCEIVER is provided in the ON TRACK WEB API, but when I looked at it, it was difficult to access the RTP TRANSCEIVER in PION's ON_TRACK. I'm raising the PR because I would like to add a function to get the TR from the receiver rather than changing the supplied arguments of the ON_TRACK FUNC.

Description:

@Sean-Der
Copy link
Member

Sean-Der commented Aug 2, 2023

Hi @do-hyung-kim

LGTM! Can you update the doc to match the other functions. Something like Transceiver returns the RTPTransceiver this RTPReceiver is associated with or nil

// Track returns the RtpTransceiver TrackRemote

Returns the RTPTransceiver currently associated with this RTPReceiver
@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.04% ⚠️

Comparison is base (c23eeb1) 77.71% compared to head (ffad387) 77.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2527      +/-   ##
==========================================
- Coverage   77.71%   77.68%   -0.04%     
==========================================
  Files          87       87              
  Lines        9360     9365       +5     
==========================================
+ Hits         7274     7275       +1     
- Misses       1655     1659       +4     
  Partials      431      431              
Flag Coverage Δ
go 79.45% <0.00%> (-0.04%) ⬇️
wasm 70.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
rtpreceiver.go 72.52% <0.00%> (-1.36%) ⬇️

... and 1 file with indirect coverage changes

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

@Sean-Der
Copy link
Member

Sean-Der commented Aug 2, 2023

Thank you @do-hyung-kim! After the tests pass I will merge and tag a new version :)

@do-hyung-kim
Copy link
Contributor Author

do-hyung-kim commented Aug 2, 2023

Hi @Sean-Der

Thank you for your feedback and help. :)

@Sean-Der Sean-Der merged commit b40f599 into pion:master Aug 2, 2023
32 of 33 checks passed
@Sean-Der
Copy link
Member

Sean-Der commented Aug 2, 2023

@do-hyung-kim tagged v3.2.14

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

Successfully merging this pull request may close these issues.

2 participants