Documentation
¶
Overview ¶
Package explainer provides APIs to make debugging and learning WebRTC easier
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerConnectionExplainer ¶
type PeerConnectionExplainer interface { // SetLocalDescription updates the PeerConnectionExplainer with the provided SessionDescription SetLocalDescription(input string) // GetLocalDescription returns the current SDP we are using from SetLocalDescription GetLocalDescription() string // SetRemoteDescription updates the PeerConnectionExplainer with the provided SessionDescription SetRemoteDescription(input string) // GetRemoteDescription returns the current SDP we are using from SetRemoteDescription GetRemoteDescription() string // Explain returns the result of the current PeerConnectionExplainer. Explain() Result }
PeerConnectionExplainer mocks the PeerConnection API and returns analysis and suggestions.
func NewPeerConnectionExplainer ¶
func NewPeerConnectionExplainer() PeerConnectionExplainer
NewPeerConnectionExplainer returns a new PeerConnectionExplainer.
type PeerDetails ¶
type PeerDetails = result.PeerDetails
PeerDetails contains the details published by a single peer. This is what a single peer Offered or Answered.
type Result ¶
type Result struct { Errors []output.Message `json:"errors"` Warnings []output.Message `json:"warnings"` Suggestions []output.Message `json:"suggestions"` LocalDetails PeerDetails `json:"localDetails"` RemoteDetails PeerDetails `json:"remoteDetails"` SessionDetails SessionDetails `json:"sessionDetails"` }
Result is the current status of the PeerConnectionExplainer.
type SessionDetails ¶
type SessionDetails = result.SessionDetails
SessionDetails is the combination of the Offer/Answer and what the actual state of the WebRTC session is.
Directories
¶
Path | Synopsis |
---|---|
examples
|
|
go
command
Package main implements a little CLI example
|
Package main implements a little CLI example |
internal
|
|
result
Package result contains the structured data returned to callers
|
Package result contains the structured data returned to callers |
sdp
Package sdp pravides a rfc8866 parser
|
Package sdp pravides a rfc8866 parser |
pkg
|
|
output
Package output contains structure that are returned by Explainers
|
Package output contains structure that are returned by Explainers |
wasm
command
Package main implements a WASM example
|
Package main implements a WASM example |
Click to show internal directories.
Click to hide internal directories.