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

Upgrade to pion/webrtc@v3 #9

Open
Sean-Der opened this issue Dec 31, 2020 · 2 comments
Open

Upgrade to pion/webrtc@v3 #9

Sean-Der opened this issue Dec 31, 2020 · 2 comments

Comments

@Sean-Der
Copy link

Hey @gavv

We released v3 would you be open to a PR porting webrtc-cli?

I will have to make some changes for the new Track API and Trickle ICE being enabled by default. It requires no real refactoring though just changes to the names of functions.

thanks!

@gavv
Copy link
Owner

gavv commented Feb 15, 2021

Hi, sure, PRs are welcome! Thanks for taking care of it!

@gavv
Copy link
Owner

gavv commented Feb 21, 2021

I've pushed the first attempt to branch pion3. See last commit: fa89a62

It's compiling, but not working yet. I think the problem is with newMediaEngineFromOffer() function. This function creates MediaEngine from an SDP offer. Later I pass this media engine to the API object.

newMediaEngineFromOffer() does three things:

  • calls populateFromSDP(), which replicates webrtc.MediaEngine.PopulateFromSDP from v2, but with some differences (to be honest, I don't remember why I had to do it)

  • validates parameters of the offered audio codec (it should be opus, have right sample rate, etc)

  • determines whether opus FEC is enabled in the offer

I guess that this workflow is not valid anymore in v3.

@Sean-Der I'm going to look into it further, but if you know how to fix it and would like to do it, or just have some hints, you're welcome! Please let me know.

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

No branches or pull requests

3 participants
@Sean-Der @gavv and others