Documentation ¶
Overview ¶
Package whip contains WebRTC / WHIP utilities.
Index ¶
- func GetICEServers(ctx context.Context, hc *http.Client, ur string) ([]webrtc.ICEServer, error)
- func ICEFragmentMarshal(offer string, candidates []*webrtc.ICECandidateInit) ([]byte, error)
- func ICEFragmentUnmarshal(buf []byte) ([]*webrtc.ICECandidateInit, error)
- func LinkHeaderMarshal(iceServers []webrtc.ICEServer) []string
- func LinkHeaderUnmarshal(link []string) ([]webrtc.ICEServer, error)
- func PostCandidate(ctx context.Context, hc *http.Client, ur string, ...) error
- type PostOfferResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetICEServers ¶
GetICEServers posts a WHIP/WHEP request for ICE servers.
func ICEFragmentMarshal ¶
ICEFragmentMarshal encodes an ICE fragment.
func ICEFragmentUnmarshal ¶
ICEFragmentUnmarshal decodes an ICE fragment.
func LinkHeaderMarshal ¶
func LinkHeaderMarshal(iceServers []webrtc.ICEServer) []string
LinkHeaderMarshal encodes a link header.
func LinkHeaderUnmarshal ¶
LinkHeaderUnmarshal decodes a link header.
Types ¶
type PostOfferResponse ¶
PostOfferResponse is the response to a post offer.
Click to show internal directories.
Click to hide internal directories.