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

SDP with no tracks causes exception in transport creation #165

Open
james-pellow opened this issue Dec 9, 2020 · 1 comment
Open

SDP with no tracks causes exception in transport creation #165

james-pellow opened this issue Dec 9, 2020 · 1 comment

Comments

@james-pellow
Copy link
Contributor

If I generate an offer with no tracks, for example:

const pc = new RTCPeerConnection({});
const offer = await pc.createOffer();

In chrome m87 I get an offer that looks like:

v=0
o=- 8401431966283103841 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic: WMS

Now if I send that to Medooze on the server side, I get an exception "No remote ICE or DTLS info provided"

In the endpoint createTransport code, we are checking for ICE or DTLS info in the remote description and throwing an error if its not found. This means we can't create a transport in the case where we are not sending any media from the client. I mentioned this challenge in Structure for group conversation in the support forum and you requested that I create a ticket. Thank you for taking a look at this!

@james-pellow
Copy link
Contributor Author

The solution is to add trackless transceivers to the pc before generating the offer for anyone else that may be experiencing the same issue.

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

1 participant