Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Pc *webrtc.PeerConnection
// contains filtered or unexported fields
}
func New ¶
func New(urlString string, pcConfig webrtc.Configuration) (*Client, error)
New creates a new WHEP client using default Pion codecs and interceptors.
func NewFromPc ¶ added in v0.2.0
func NewFromPc(urlString string, pc *webrtc.PeerConnection) (*Client, error)
NewFromPc creates a new WHEP client using provided peer connection. Can be used when you want to set custom codecs or interceptors.
func (*Client) Disconnect ¶
Disconnect closes local peer connection and removes server resource.
Click to show internal directories.
Click to hide internal directories.