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

name of media engines are uppercase in pion/webrtc but are lowercase in pion/ion-sfu #661

Closed
yindaheng98 opened this issue Jun 3, 2022 · 1 comment · Fixed by #669
Closed

Comments

@yindaheng98
Copy link

Your environment.

  • Version: 68545cc
  • Client: github.com/pion/webrtc
  • Environement: Docker
  • Are you using a TURN server? no
  • Other Information - stacktraces, webrtc dumps, related issues, suggestions how to fix, links for us to have context

What did you do?

Try to connect to SFU with a webrtc.Peerconnection, like example code here

What did you expect?

It should connect

What happened?

Unsupported media engine

Cause

I found that the name of media engines in pion/ion-sfu is lowercase: code here

In pion/webrtc however, name of media engines is uppercase: code here

So when I use the code like the example in pion/webrtc, it doesn't work

Also I found the test code in pion/ion-sfu is not the same as the example in pion/webrtc: test code here and example code here

It is not a serious bug but takes me several hours. So why not use the same case?

@ojroques
Copy link
Contributor

I ran into the same issue. There must be an issue with the way the SDP is parsed as pion/webrtc explicitly states that "Matching should be case insensitive."

https://github.com/pion/webrtc/blob/42dc0d47883bb32266325502f3e052ff9afb3f78/mediaengine.go#L21

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 a pull request may close this issue.

2 participants