Documentation ¶
Index ¶
- type ApiFactory
- type Decoder
- type ModApiFun
- type Peer
- func (p *Peer) AddCandidate(candidate string, decoder Decoder) error
- func (p *Peer) Disconnect()
- func (p *Peer) IsConnected() bool
- func (p *Peer) NewCall(vCodec, aCodec string, onICECandidate func(ice any)) (sdp any, err error)
- func (p *Peer) SendMessage(data []byte)
- func (p *Peer) SetRemoteSDP(sdp string, decoder Decoder) error
- func (p *Peer) WriteAudio(sample *media.Sample) error
- func (p *Peer) WriteVideo(sample *media.Sample) error
- type PionLog
- func (p PionLog) Debug(msg string)
- func (p PionLog) Debugf(format string, args ...any)
- func (p PionLog) Error(msg string)
- func (p PionLog) Errorf(format string, args ...any)
- func (p PionLog) Info(msg string)
- func (p PionLog) Infof(format string, args ...any)
- func (p PionLog) NewLogger(scope string) logging.LeveledLogger
- func (p PionLog) Trace(msg string)
- func (p PionLog) Tracef(format string, args ...any)
- func (p PionLog) Warn(msg string)
- func (p PionLog) Warnf(format string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiFactory ¶
type ApiFactory struct {
// contains filtered or unexported fields
}
func NewApiFactory ¶
func (*ApiFactory) NewPeer ¶
func (a *ApiFactory) NewPeer() (*webrtc.PeerConnection, error)
type ModApiFun ¶
type ModApiFun func(m *webrtc.MediaEngine, i *interceptor.Registry, s *webrtc.SettingEngine)
type Peer ¶
type Peer struct { OnMessage func(data []byte) // contains filtered or unexported fields }
func (*Peer) Disconnect ¶
func (p *Peer) Disconnect()
func (*Peer) IsConnected ¶
func (*Peer) SendMessage ¶
Click to show internal directories.
Click to hide internal directories.