-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Populate RTPTransceiver stopped flag #2336
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportBase: 77.52% // Head: 77.59% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2336 +/- ##
==========================================
+ Coverage 77.52% 77.59% +0.07%
==========================================
Files 87 87
Lines 9262 9266 +4
==========================================
+ Hits 7180 7190 +10
+ Misses 1648 1644 -4
+ Partials 434 432 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There is use of `t.stopped` in `peerconnection.go`, but that flag is not set/used in `RTPTransceiver` at all. This PR sets that when a transceiver is stopped and provides an API to check if a tranceiver is stopped.
097d94f
to
71f4e4b
Compare
Pion's transceiver don't have a real |
Thank you @cnderrauber . Did not realise this path had already been done. Maybe, we should just remove the |
hey @boks1971, do you still want to work together to get this in? |
@edaniels Would be good to clean up that unused flag, but the discussions surrounding it which @cnderrauber pointed out makes me reluctant to change things. There was also a similar commit by @Sean-Der and a revert. Have not checked exactly why it was reverted. I am still thinking that getting rid of just that field is good as it is has only one value, i. e. Getting rid of that field looks straightforward except this one place which is conditioned on Line 409 in fc3521e
|
I think it's safe and good to remove the always false bool then. Separately, I think we need to get the behavior of stopped, ended, and friends in line with the W3 spec. I may try to tackle that soon. |
There is use of
t.stopped
inpeerconnection.go
, but that flag is not set/used inRTPTransceiver
at all. This PR sets that when a transceiver is stopped and provides an API to check if a transceiver is stopped.@Sean-Der @davidzhao @cnderrauber The fact that code does not seem to get tripped makes me think I am missing something, but I noticed the ☝️ (i. e.
stopped
flag inRTPTransceiver
was not set/used) and made this PR to address this. Have tested this change with LiveKit and it seems fine.