Documentation
¶
Index ¶
- func CurrentPeerConnectionRTT(pc *webrtc.PeerConnection) (time.Duration, bool)
- func NewAPI(clientIP string, vp9PT uint8, opts ...Option) (*webrtc.API, error)
- func NewSettingEngineMutator(b *ImpairmentBinding) (func(*webrtc.SettingEngine), error)
- func NewVP9RTPTrack(streamID string) (*webrtc.TrackLocalStaticRTP, error)
- func NewVP9SampleTrack(streamID string) (*webrtc.TrackLocalStaticSample, error)
- func PollPeerConnectionRTT(ctx context.Context, interval time.Duration, ...)
- func RegisterLoggingCallbacks(l *log.Logger, pc *webrtc.PeerConnection)
- type ImpairmentBinding
- type ImpairmentProfile
- type ImpairmentRouter
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentPeerConnectionRTT ¶
func CurrentPeerConnectionRTT(pc *webrtc.PeerConnection) (time.Duration, bool)
func NewSettingEngineMutator ¶
func NewSettingEngineMutator(b *ImpairmentBinding) (func(*webrtc.SettingEngine), error)
func NewVP9RTPTrack ¶
func NewVP9RTPTrack(streamID string) (*webrtc.TrackLocalStaticRTP, error)
func NewVP9SampleTrack ¶
func NewVP9SampleTrack(streamID string) (*webrtc.TrackLocalStaticSample, error)
func PollPeerConnectionRTT ¶
func RegisterLoggingCallbacks ¶
func RegisterLoggingCallbacks(l *log.Logger, pc *webrtc.PeerConnection)
Types ¶
type ImpairmentBinding ¶
type ImpairmentBinding struct {
Router *ImpairmentRouter
Profile *ImpairmentProfile
}
type ImpairmentProfile ¶
type ImpairmentRouter ¶
type ImpairmentRouter struct {
// contains filtered or unexported fields
}
func NewImpairmentRouter ¶
func NewImpairmentRouter(serverIP string, serverPort int) (*ImpairmentRouter, error)
func (*ImpairmentRouter) Start ¶
func (r *ImpairmentRouter) Start() error
func (*ImpairmentRouter) Stop ¶
func (r *ImpairmentRouter) Stop() error
type Option ¶
type Option func(*apiConfig)
func WithAPIOption ¶
func WithForceActiveDTLS ¶
func WithForceActiveDTLS() Option
func WithImpairment ¶
func WithImpairment(b *ImpairmentBinding) Option
Click to show internal directories.
Click to hide internal directories.