Skip to content

Conversation

lminiero
Copy link
Member

@lminiero lminiero commented Sep 8, 2025

Just as I did on the WHEP server, this PR implements support for the automatic fallback to server-sent offers when a server replies with a 406 instead of a 201. As such, this basically partially restores the behaviour the client had before #9 was merged, allowing the client to add in both modes depending on the answer from the server.

This patch is still a bit experimental as there are a couple of things that should have better cleanup (e.g., the original PeerConnection that was created for a client-sent offer and then replaced when switching to a server-sent offer is not removed until shutdown), but apart from this it should be functionally working. To test this with the Janus based web server, you'll need to use this branch. If your server supports server-sent offers as per v03 of the draft, this should work with that as well (please let me know if it doesn't).

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 this pull request may close these issues.

1 participant