Repository navigation
feat: expose WHIP/WHEP extensions and detect WHEP endpoints by HEAD - #485
Merged
Merged
Conversation
Session.extensions() gives the URL of each extension the endpoint names in Link header fields of its answer, by its relation type under urn:ietf:params:whip:ext or urn:ietf:params:whep:ext (RFC 9725 4.9), resolved against the endpoint. Links of other relation types stay ignored.
Whep.Builder.detect(rtc) asks a URL with HEAD whether it serves WHEP, as draft-ietf-wish-whep-05 4.2 describes: 200 with application/sdp and a Link to the profile urn:ietf:params:whep, never the Content-Type alone. The request carries the builder's credentials and timeout and follows the redirects the offer follows.
…ions-detect # Conflicts: # webrtc/src/main/java/dev/onvoid/webrtc/client/Whep.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Session.extensions()gives the URL of each protocol extension the endpoint names inLinkheader fields of its answer, by its relation type underurn:ietf:params:whip:extorurn:ietf:params:whep:ext(RFC 9725 4.9), resolved against the endpoint. Links of other relation types stay ignored, apart fromice-server.Whep.Builder.detect(rtc)asks a URL with HEAD whether it serves WHEP (draft-ietf-wish-whep-05 4.2): 200 withapplication/sdpand aLinkto the profileurn:ietf:params:whep, never the Content-Type alone. It carries the builder's credentials and timeout.