Documentation
¶
Index ¶
- func ConstructApi(handlerId uint32) *webrtc.API
- type PionPeer
- type PionPeerCallback
- type PionTrackCallback
- type SimplePionLogger
- func (logger *SimplePionLogger) Debug(msg string)
- func (logger *SimplePionLogger) Debugf(format string, args ...any)
- func (logger *SimplePionLogger) Error(msg string)
- func (logger *SimplePionLogger) Errorf(format string, args ...any)
- func (logger *SimplePionLogger) Info(msg string)
- func (logger *SimplePionLogger) Infof(format string, args ...any)
- func (logger *SimplePionLogger) Trace(msg string)
- func (logger *SimplePionLogger) Tracef(format string, args ...any)
- func (logger *SimplePionLogger) Warn(msg string)
- func (logger *SimplePionLogger) Warnf(format string, args ...any)
- type SimplePionLoggerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructApi ¶
Types ¶
type PionPeer ¶
type PionPeer struct {
*webrtc.PeerConnection
Callback PionPeerCallback
// contains filtered or unexported fields
}
func (*PionPeer) AddIceCandidate ¶
func (*PionPeer) Initialize ¶
type PionPeerCallback ¶
type PionPeerCallback interface {
OnIceCandidate(candidate string, sdpMid *string, sdpMLineIndex *uint16) error
OnIceConnectionStateChange(state webrtc.ICEConnectionState) error
OnConnectionStateChange(state webrtc.PeerConnectionState) error
OnRemoteAudioTrack(sampleRate uint32, channels uint16) (PionTrackCallback, error)
OnLocalAudioTrack(sampleRate uint32, channels uint16, callback PionTrackCallback) error
OnError(err error)
}
type PionTrackCallback ¶
type SimplePionLogger ¶
func (*SimplePionLogger) Debug ¶
func (logger *SimplePionLogger) Debug(msg string)
func (*SimplePionLogger) Debugf ¶
func (logger *SimplePionLogger) Debugf(format string, args ...any)
func (*SimplePionLogger) Error ¶
func (logger *SimplePionLogger) Error(msg string)
func (*SimplePionLogger) Errorf ¶
func (logger *SimplePionLogger) Errorf(format string, args ...any)
func (*SimplePionLogger) Info ¶
func (logger *SimplePionLogger) Info(msg string)
func (*SimplePionLogger) Infof ¶
func (logger *SimplePionLogger) Infof(format string, args ...any)
func (*SimplePionLogger) Trace ¶
func (logger *SimplePionLogger) Trace(msg string)
func (*SimplePionLogger) Tracef ¶
func (logger *SimplePionLogger) Tracef(format string, args ...any)
func (*SimplePionLogger) Warn ¶
func (logger *SimplePionLogger) Warn(msg string)
func (*SimplePionLogger) Warnf ¶
func (logger *SimplePionLogger) Warnf(format string, args ...any)
type SimplePionLoggerFactory ¶
func (*SimplePionLoggerFactory) NewLogger ¶
func (factory *SimplePionLoggerFactory) NewLogger(scope string) logging.LeveledLogger
Click to show internal directories.
Click to hide internal directories.