Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CandidateTypes ¶
func CandidateTypes() []ice.CandidateType
func CandidateTypesP2P ¶
func CandidateTypesP2P() []ice.CandidateType
func GenerateICECredentials ¶
Types ¶
type Config ¶
type Config struct {
// StunTurn is a list of STUN and TURN URLs
StunTurn *StunTurn // []*stun.URI
// InterfaceBlackList is a list of machine interfaces that should be filtered out by ICE Candidate gathering
// (e.g. if eth0 is in the list, host candidate of this interface won't be used)
InterfaceBlackList []string
DisableIPv6Discovery bool
UDPMux ice.UDPMux
UDPMuxSrflx ice.UniversalUDPMux
NATExternalIPs []string
}
type ThreadSafeAgent ¶ added in v0.55.1
func NewAgent ¶
func NewAgent(ctx context.Context, iFaceDiscover stdnet.ExternalIFaceDiscover, config Config, candidateTypes []ice.CandidateType, ufrag string, pwd string) (*ThreadSafeAgent, error)
func (*ThreadSafeAgent) Close ¶ added in v0.55.1
func (a *ThreadSafeAgent) Close() error
Click to show internal directories.
Click to hide internal directories.