Documentation
¶
Index ¶
- type Manager
- func (m *Manager) AddICECandidate(peerID, candidate string) error
- func (m *Manager) CloseAll()
- func (m *Manager) ClosePeer(peerID string)
- func (m *Manager) CreateOffer(peerID string) (string, error)
- func (m *Manager) HandleAnswer(peerID, sdp string) error
- func (m *Manager) HandleOffer(peerID, sdp string) (string, error)
- func (m *Manager) WriteSample(data []byte, duration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(config pionwebrtc.Configuration, onICE func(peerID, candidate string), onState func(peerID string, state pionwebrtc.PeerConnectionState), onTrack func(peerID string, track *pionwebrtc.TrackRemote)) (*Manager, error)
func (*Manager) AddICECandidate ¶
func (*Manager) HandleAnswer ¶
Click to show internal directories.
Click to hide internal directories.